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.

JSON file / Accessing some key

Home Forums Puzzles JSON file / Accessing some key

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #50703
    moiamy
    Participant

    Hello

    I couldn’t find answers on the forum yet.
    How can I access a particular key:data with puzzle ?
    0:id or 0:file is not working

    I have made a beautifull picture to describe my problem :)

    Attachments:
    You must be logged in to view attached files.
    #50791
    moiamy
    Participant

    Sorry to come back on this one.
    But I can’t figure to get the file parameter for a specific id.
    What would be the right puzzle for this json file (same structure as my precedent pos)

    
    {
        "Earth_structure":[
           {
              "id":"001",
              "file":"Earth_atmosphere.gltf",
              "mode":"append",
              "name":"Atmosphere",
              "author":"francois bonnard"
    
           },
           {
            "id":"002",
            "file":"Earth_magnetism.gltf",
            "mode":"replace",
            "name":"Magnetism",
            "author":"francois bonnard"
            }
        ]
     }  
     
    #50792

    hi,

    Sorry for late response. You have an Array under the key “Earth_structure”.

    So first, you should get this array with dict_get_key. Then, you can get items from this Array (or List) with this puzzle.

    Chief 3D Verger | LinkedIn | Twitter

    #50797
    moiamy
    Participant

    Thanks Yuri. I have found a workaround with csv, but I will try that also.

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