Hi all,
I’ve been trying to figure this one out for days and I can’t seem to find the right approach. I’m using the JSON Machine plugin to store some json content. I’ve got a test page where I have a single workflow element setting a value. In the page I have a Read JSON
element where I want to retrieve the content in order to display it in a text element. The setup is as shown below
What am I missing here?
Thank you in advance.
I tried using that plugin just yesterday and couldn’t get it to work with my JSON (yes, I verified it was valid)…I was only able to make it work with the same JSON provided in the test app. I emailed the email address listed on the contributor profile, but got a ‘mailer demon’ reply indicating the email address could not be reached…so I uninstalled it and found one that works.
Hi @boston85719 ,
Thanks for the suggestion. It’s been so much easier to implement than with JSON Machine. Have you had to read nested values using JSON path as stated in the documentation? I’ve got the following setup and as shown in the pictures I can read and show the top-level attribute test
but not test.foo
. Any idea of what’s wrong?
I don’t. I suggest contacting the plugin developer
I reached out and the author was super helpful! My mistake was twofold, first I was using the wrong syntax, it should’ve been $.test.foo[:]
instead of $.test.foo
and second, it’s important to select the type of the output when grabbing the value from a Read JSON element. I had assumed that using [Read JSON object]'s json_text
would’ve worked but I had to use [Read JSON object]'s list of numbers
.
1 Like