nsJSON get value
hi
i read a json value from variable but i have some problems:
this code can't show result value address:
but this code show result value address:
my problem is the [] , if the value is entered in double quotation "[]" the result successfully displayed
but if in variable not insert [] to quotation then result can't successfully displayed
hi
i read a json value from variable but i have some problems:
this code can't show result value address:
HTML Code:
StrCpy $0 '{"status":"ok","username":"rose","password":"software","expire":"2020","used_time":[],"address":"http:\/\/google.com\/apps"}' nsJSON::Set /value $0 nsJSON::Get "address" /end Pop $R0 DetailPrint $R0
but this code show result value address:
HTML Code:
StrCpy $0 '{"status":"ok","username":"rose","password":"software","expire":"2020","used_time":"[]","address":"http:\/\/google.com\/apps"}' nsJSON::Set /value $0 nsJSON::Get "address" /end Pop $R0 DetailPrint $R0
HTML Code:
The difference in codes is [] and is "[]"
but if in variable not insert [] to quotation then result can't successfully displayed
Comment