Home > Back-end >  Superobject json query problem
Superobject json query problem

Time:09-26

Superobject json format, from an interface address, user name and password, two parameters (the order number, product number), query the product detail information, should be how to write statement

CodePudding user response:

Zha don't have to bring their own json libraries

CodePudding user response:

Superobject json into superobject object, and then you can have access to the node so [' XXX '] asString
If 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 write

CodePudding user response:

http://www.cnblogs.com/doorsky/p/4514781.html

consult

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
  • Related