Is there such a json string: {"1": "1"}, {"2": "2"}, without brackets, how to parse it with fastjson

will RT, have this kind of json?

Mar.06,2021

No, first of all, we need to understand the data structure of java language, and secondly, we need to understand the data format of json.
you can take a look at the json data format: http://www.jb51.net/article/1.


such a structure without square brackets is not legal JSON . If you are sure that adding square brackets is legal, you can add square brackets before and after.

String invalid = "{\"1\":\"1\"},{\"2\":\"2\"}";
String valid = "[" + invalid + "]"
String valid2 = new StringBuilder("[").append(invalid).append("]").toString();
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35ecc-2b81c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35ecc-2b81c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?