Web component bug : JSON decode error

Describe your issue

I have checked many times the JSON obtained, it is perfectly valid, all strings are encoded, and all json decoders can read it.
I can send it privately if necessary.

But, for all users of the application, regardless of their device or version of android, this error appears


I’ve simply used the JSON Text Decode like this.

My only theory is that the component cannot decode the text when it becomes too long, because the json is perfectly correct.
It has image lines and image

I also noticed that numbers are sometimes stored like that. Could that cause the problem?
image

The only way to fix this is to remove the whole ranking, and start from scratch again, but the error will happen again within 1 or 2 weeks. There is no need to create a ranking if I have to do it again every 2 weeks.

Feel free to ask me if you need any additional information !

CAn you send me the JSON please. I will experiment with it later this morning.

1 Like

Done ! Also, JSONTools extension can parse this json without problem

I’ve finaly found the company that cause this bug, i’ve removed it from the database, and it works normally !

"Infinity" : {
    "Day" : "3",
    "Fans" : "0",
    "Money" : "4998500"
  }

It’s very strange, there’s nothing wrong with this text!

Maybe the 0 make a problem.
Try to put in null/ zero or a other word.

I see in a lot of json answer instead of 0 zero/ null or so.

1 Like

There are many others with 0, they didn’t caused any problem !
image

1 Like

very strange

1 Like

Can you PM me the json? So that I can give a try.

Probably because Infinity is not a valid tag name.

Infinity, NaN, and undefined aren’t defined in JSON syntax.
https://perlmaven.com/parsing-nan-in-json

3 Likes

"Infinity" as a String is valid as per the JSON grammar.

There must be some other reason.

2 Likes