CodePudding user response:
Zha don't have to bring their own json librariesCodePudding user response:
Superobject json into superobject object, and then you can have access to the node so [' XXX '] asStringIf the node array is converted to an array, so [' XXX '] AsArray, all that remains is to iterate through the array
CodePudding user response:
Not traverse problems, no contact with json is I don't know how to write the query, the user name password that how to writeCodePudding user response:
http://www.cnblogs.com/doorsky/p/4514781.htmlconsult
CodePudding user response:
Choice for you to get a json namely a string!Are either HTTP, or other agreement of
Access to the parsing
CodePudding user response:
Jitems:=SA ([]);Jo: SO=();
Jo. [' url '] S:=cxmaskedit3. Text;
Jo. [' account '] S:=cxmaskedit1. Text;
Jo. [' password '] S:=cxmaskedit2. Text;
ProductStr:='{" productCode ":"' + cxmaskedit5. Text + ", "quantity" : "' + cxmaskedit4. Text + '"}";
Jo. [' data '] S:=productstr;
S:=Jo. AsJSon (True, False);
To get a json content ah, I this right S or the value of the content