Post
by pfischer » Tue May 29, 2018 8:36 pm
Dear Marcus,
I just found this post from some years ago with respet to a json output. However, I really do not get it.
My JSON output is exactly like the output from tbrahmer:
[{"usr_uid":"000","usr_name":"admin"},{"usr_uid":"127","usr_name":"bot"},{"usr_uid":"269","usr_name":"fred"}]
In your reply you recommend to give the array a name and in you give the following code as solution:
/*
JSON:
{"things":[{"usr_uid":"000","usr_name":"admin"},{"usr_uid":"127","usr_name":"bot"},{"usr_uid":"269","usr_name":"fred"}]}
*/
LabelToVar>JSON,sJSON
JSONParse>sJSON,things[1].usr_uid,res
However, the upper lines are commented -> so when I have the string [{"usr_uid":"000","usr_name":"admin"},{"usr_uid":"127","usr_name":"bot"},{"usr_uid":"269","usr_name":"fred"}], how do you give this array a name? as you recommend. It cannot be by the commented code section because this is inactive??
Probably I hav a block in my mind but can you explain how to give the string a name?
Thanks
Phil