We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Any easy way to retrieve nested JSON data?

Home Forums Puzzles Any easy way to retrieve nested JSON data?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #47269
    grimmy
    Customer

    CUrrently it seems there only way to do this is by creating a new variable for each of the JSON nodes..

    For example, if I need to get item.name.eng i have to write an epic puzzle as in the attached image. This is clearly very unwieldy and I cant imagine being able to use this for complex JSON data.

    Hopefully I’m wrong and there is a fast way to access a JSON nodes..

    ANyone know?

    CHeers

    JSON:

    {
      "item": {
        "filename": {
          "eng": "someModel.gblx"
        },
        "name": {
          "eng": "My Model"
        },
        "description": {
          "eng": "This is some description"
        },
        "price": 200
      },
      "item1": {
        "filename": {
          "eng": "someModel.gblx"
        },
        "name": {
          "eng": "My Model"
        },
        "description": {
          "eng": "This is some description"
        },
        "price": 200
      }
    }
    • This topic was modified 10 months, 1 week ago by grimmy.
    Attachments:
    You must be logged in to view attached files.
    #47272
    grimmy
    Customer

    Something like this would be perfect, but it doesn’t seem to work.. :cry:

    Attachments:
    You must be logged in to view attached files.
    #47285
    GLiFTeK
    Customer

    Hi,
    I see your desired example, but how else are you imagining that you would navigate through your JSON object (dictionary) other than how the current puzzles provide?

    #48560
    AVerge3Der
    Participant

    “Something like this would be perfect, but it doesn’t seem to work..

    That would help my current project out as well. This example seems the professional way to access this data.

    +1 for request for this feature with concerns to JSON data. :good:

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.