Xlinka / NeosPlus

NeosVR Plugin Extra Logix nodes and features
https://discord.gg/9QAaMtXwke
Other
29 stars 18 forks source link

Two JSON parse nodes. #24

Closed reality-exe closed 2 years ago

reality-exe commented 2 years ago

Get JSON data from a specific integer (Like Multiplex) and amount of objects / data

{
    {   0
        "TestData":"123456"
    },
    {   1
        "TestData":"321654"
    },
    {   2
        "TestData":"321654"
    }
}

And amount would count to 3.

Frozenreflex commented 2 years ago

I've created a node for counting the immediate children of a JObject, but I don't know how to interpret your first request, are you asking for array support? The Json you provided also doesn't seem to be valid.

reality-exe commented 2 years ago

I don't know how to interpret your first request, are you asking for array support?

Being able to select a specific data table from multiple like multiplexers. The JSON i provided was just a quick show to say sort of what i was talking about. Grabbing the data from 0 would return just the data in the first object so it would be "TestData":"123456" however if i grab data from 1 it would return "TestData":"321654". Hopefully i cleared that up i am tired while making this lol

reality-exe commented 2 years ago

Oh so yeah i guess it would be array support nevermind

Frozenreflex commented 2 years ago

Oh so yeah i guess it would be array support nevermind

Taking your JSON sample, removing the numbers, and replacing the first pair of brackets with square brackets does make it a valid array. I am working on array support.

reality-exe commented 2 years ago

Yeah I'm a little slow rn sorry about that

Frozenreflex commented 2 years ago

Added