Re: JSONtoArray() without indexes?
Posted: Tue Mar 22, 2022 4:15 pm
Why?Zax wrote: Tue Mar 22, 2022 3:18 pmI started with that, but it soon appears that it was not a good way.
Questions and answers about the LiveCode platform.
https://forums.livecode.com/
Why?Zax wrote: Tue Mar 22, 2022 3:18 pmI started with that, but it soon appears that it was not a good way.
Well, I think it's better to have all data result in one formatted line instead of an unknown number of lines, and separated from possible error strings returned by the Python script.FourthWorld wrote: Tue Mar 22, 2022 4:15 pmWhy?Zax wrote: Tue Mar 22, 2022 3:18 pmI started with that, but it soon appears that it was not a good way.
It's very rare that data coming over the internet is ensured to be limited to a single line. If that's the only concern I'm curious about what makes the Python delivery script brittle enough for that to be an issue.Zax wrote: Tue Mar 22, 2022 5:02 pmWell, I think it's better to have all data result in one formatted line instead of an unknown number of lines, and separated from possible error strings returned by the Python script.FourthWorld wrote: Tue Mar 22, 2022 4:15 pmWhy?Zax wrote: Tue Mar 22, 2022 3:18 pm
I started with that, but it soon appears that it was not a good way.
Just tried PhotoJSON: it works fine and more flexible than JSONToArraystam wrote: Mon Mar 21, 2022 8:33 am FerrusLogic have shared their own parser PhotonJSON as free/opensource.
Excellent. Good find. Glad you have a solution in hand.Zax wrote: Wed Mar 23, 2022 12:02 pmJust tried PhotoJSON: it works fine and more flexible than JSONToArraystam wrote: Mon Mar 21, 2022 8:33 am FerrusLogic have shared their own parser PhotonJSON as free/opensource.![]()
Glad to hear it’s useful - don’t forget to give them a star on GitHub in way of thanks! I’ll definitely check it out when I have need of JSON…Zax wrote: Wed Mar 23, 2022 12:02 pm Just tried PhotoJSON: it works fine and more flexible than JSONToArray![]()