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
203 stars 89 forks source link

How to access nested arrays #69

Closed juniormayhe closed 6 years ago

juniormayhe commented 6 years ago
Set jsonObj = New JSONobject
Set teste =jsonObj.parse("{ ""key"": ""value""}")
Response.write("<br><br>" & teste("key"))

outputs value

set jsonObj = New JSONobject
Set teste =jsonObj.parse("[ { ""item"": ""value""}, { ""item"": ""value2""} ]")

how to display nested array values with this library?

rcdmk commented 6 years ago

Hi. Do this helps you? https://github.com/rcdmk/aspJSON/wiki/Array-parsing