Quantcast
Channel: FiveTech Software tech support forums
Viewing all articles
Browse latest Browse all 26212

Hash when decoding JSON [ Mr. Rao ]

$
0
0
Enrico, Sometimes that isn't possible due to an NDA that does not allow me to post some links / data. Let me put it this way. Mr. Rao suggested this code as an alternative to hb_jsondecode( ) The value I receive from the server is a properly formatted json response. If I use the hb_jsondecode( ) function to return a hash file cRet, and then look at it with xbrowser, everything is properly handled. In studying Mr. Rao's solution with the exact same json response, not encoded as a hash, it has an error with the & symbol. It doesn't matter if I use xHarbour ( .com ) or Harbour. My issue is I want to translate ALL lines of the json response, and write them to an array, not just find one specific value. I was looking at Mr. Rao's solution as a possible way toward doing this since it was given in response to another person who also wanted to put a json response into an array rather than a hash file. So ... the error is a runtime error, and it specifically states the error is with &. So I can stick with the hash ... and just figure out how to work with that to get what I want which is a multi level parsing of the data. Tim

Viewing all articles
Browse latest Browse all 26212

Trending Articles