Home > database >  Parsing the json approach
Parsing the json approach

Time:10-20

Parsing json unicode format:
 
N_pbfunc_json lnv_json
Lnv_json. Of_parse (' {" test3 ":" \ u6735 \ u6735 \ u8d1d \ u8d1d \ u5a74 \ u513f \ u978b "} ')
String ls_val
Lnv_json. Getattribute (" test3 ", ls_val)


Parsing nested json:
 
N_pbfunc_json lnv_json
Lnv_json. Of_parse (' {" test2 ": 34422," test3 ":" what is SDSD a ", "obj" : {" aa ":" test 1 "}} ')
String ls_val
//get the value of test2
Lnv_json. Getattribute (" test2 ", ls_val)
A decimal LDC
//lnv_json. Getattribute (" test2 ", LDC)
//MessageBox (" ", ls_val + "" + string (LDC))

//n_pbfunc_json ljson
//ljson=lnv_json. Getattribute (" obj ")
String aa
//take ojb objects directly below the value of the aa ":" as the default object separator
Lnv_json. Getattribute (obj: aa, aa)
Messagebox (" ", ls_val + "~ n" + aa)

Download address

CodePudding user response:

Support, example is relatively simple

CodePudding user response:

Under the mark..
  • Related