Jump to content

Json Decoder


Acce
 Share

Recommended Posts

20 hours ago, Acce said:

So far i managed to get everything returned in console expect that pesky little line. the dump code returns it like so .Servers.en13  =0

22 hours ago, Acce said:

{"User_ID":"User65789","Servers":{"en13":0},"Servers":[{"id":"en1","num_id":1,"name":"Arvahall","started_at":1332972000,"reg...

You can't retrieve ".Servers.en13" because the JSON that was supplied is INVALID.  I seriously doubt that was how the server returned that data.  You have duplicate "Servers" keys.  You can't have duplicate keys at the same level.

Put the JSON into a validator like https://jsonlint.com/.  It will show you the error.

The reason that the json.au3 UDF dumped the value is because it is a non-strict parser.  A strict JSON parser would have given you a parsing error.

Edited by TheXman
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...