I have a string that looks like the following which I have to convert to a JSON object
VL-782597{n=1 c=[3:2.000, 5:1220121144134420.000, 6:4.000, 7:35.000] r=[5:549054495275037.560, 7:5.000]}
For JSON
parse the names must be in quotes which is not there in the string I have.
And the values are assigned as both = and : instead of : only
VL-782597 is like row id
How do I format it into JSON
from jquery/javascript
. Is this a commonly used format ?
=
to:
, insert missing commas, remove/replace the leadingVL-...
. – flem Dec 28 '12 at 10:04