rcdmk / aspJSON

A fast classic ASP JSON parser and encoder for easy JSON manipulation to work with the new JavaScript MV* libraries and frameworks.
MIT License
204 stars 89 forks source link

How do I remove the brackets []? #58

Closed eomonteiro closed 6 years ago

eomonteiro commented 6 years ago

I would like to know how to remove the brackets in JSONarray, since I thank you

rcdmk commented 6 years ago

The brackets are the JSON representation of an array. If you have only a single object inside the brackets, you can get it through the items property:

Set jsonArrayObject = json.Parse(jsonArrString)
Set myObject = jsonArrayObject.items(0)
Response.Write myObject("my_property")