if I have a string that looks like this:
“{test:“west”,best:“vest”,apple:“fruit”}”
is there any easy way to convert to an Associative Array?
- Joel
if I have a string that looks like this:
“{test:“west”,best:“vest”,apple:“fruit”}”
is there any easy way to convert to an Associative Array?
If aaString is “{test:“west”,best:“vest”,apple:“fruit”}”
Eval("aa = " + aaString)
print aa
ahhh, thank you.
That’s JSON. Take a look at the JSON parser that was discussed here awhile back and added to the rokudev library that GandK put together.
Ah, ok, thanks. I think I might be able to force xml with a header. fingers crossed.
well, the forced headers didn’t work, but its simpleJSONParser to the rescue!