the question is if for other request you will have responses with other weird fields....
For example, with the above example of @ABG this example will not work...
(EDIT: I have changed the example by other more generic)
Other option could be extract the info directly from the response string but this can be quite cumbersome depending on the information you want to extract.
I'm so sorry, I made a mistake. These fields without values ββare due to the fact that when you copied the JSON that you have left, the empty fields [ ] have been pasted as and then they have not been pasted correctly in my example. Apologies. By removing that part of "length" you should be able to decode it correctly:
Thank you for your reply buddy. Will this work though for different recipes? since my app will take different variables based on the users preferences and have the API retrieve recipes for them. I will continue working on my app and i will see if your code fixes the problem.<333
name": "pandan leaves click here cut to 2\" length",
you can se the double quotes after the 2 are escaped (2 \ ")...in what you have pasted that double quotes are not escaped (2").
This difference is why you have to put that first additional block removing "length "".
But if your response have that double quoted escaped like in the other examples (maybe other error copy-pasting) then you don't need that additional block.
It is important to find out that because what works for one scenario will not work for the other so, try without the additional block:
I found the recipe JSON unparseable using the DecodeJSONAsDictionaries block, but the older DecodeJSON block was able to parse it without errors, albeit into lists of pairs.
So here is some rudimentary browsing and display code:
I really want to thank you guys @ABG@nishyanthkumar@Kevinkun@Ramon for helping me so much with this and being so kind too! i want to show you were i got, and i think you'll be very proud! i managed to translate the Json text after organizing it like you showed me and now i can receive the titles and the steps of the recipies like i wanted i will show you the code and the screen (in the companion app):
up until here it all works like a charm! and i think i am finally understand the basic of dealing with dictionaries the only problem i may be facing is splitting the recipes apart (their titles and steps("original") i am currently working on fixing that wish me luck!