I’m now writing a test html program to check well-formed JSON data send by web socket, and i’m stuck here:
parsing JSON String while I do not know the exactly keys of it.
jQuery.parseJSON() can return the resulting JavaScript object, but I need to know each key to access the data.
I may not make my question clearified, sorry ’bout that.What I want is to make data more readable instead of a long JSON String.
Is this construct of any use?
As others have pointed out, you could use the jQuery .each() to iterate over it as well.