hi
i read a json value from variable but i have some problems:
this code can't show result value address:
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:
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
The difference in codes is [] and is "[]"
but if in variable not insert [] to quotation then result can't successfully displayed