Results 1 to 8 of 8

Thread: JsonConfig.pkg

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Join Date
    Mar 2009
    Location
    Beech Hill - a village near Reading in the UK
    Posts
    1,396

    Post Re: JsonConfig.pkg

    Michael

    Hmm... interesting...

    I already have it working using "obj1.obj2.obj3[idx1][idx2].obj4.[idx3]" type syntax.

    From the JSON:
    Code:
    {
        "foo" : {
            "bar" : {
                "baz" : [
                    66.123,
                    {
                        "jim" : "jack"
                    },
                    false,
                    {
                        "bob" : 42
                    },
                    {
                      "kim" : "possible"
                    }
                ]
            }
        }
    }

    Code:
        Move (JsonAtPath(oJsonPath, hoJson, "foo.bar.baz[3].bob")) to hoObj
    and/or
        Move (ValueAtPath(oJsonPath, hoJson, "foo.bar.baz[3].bob")) to iVal  // 42! ;-)
    Mike
    Last edited by Mike Peat; 6-Feb-2020 at 07:40 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •