Giter Club home page Giter Club logo

Comments (3)

tbett avatar tbett commented on June 12, 2024 1

Thank you! This is exactly the package that is needed to extend ASP Classic a couple more years!!! Again, thank you for taking the time to put this together and answering my questions so quickly.

from aspjson.

rcdmk avatar rcdmk commented on June 12, 2024

Thank you.

You are almost there.

All you need to do is to assign the returning value of the parse() method to an object and it will give you a reference to a JSONarray object.

set jsonArr = JSON.parse(yourJSONarrayString)

response.write jsonArr(0)("dimensions")("length") ' direct and easy access, valid for single operations

If you have to access many fields, a better (faster) way should be:

set obj = jsonArr(0)
set dimensions = obj("dimensions")

response.write dimensions("length")

from aspjson.

rcdmk avatar rcdmk commented on June 12, 2024

You are welcome.
I'm pleased to have made something useful.

from aspjson.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.