Open GoogleCodeExporter opened 8 years ago
I ran into a very similar error:
JsonParserFactory factory = JsonParserFactory.getInstance();
JSONParser parser = factory.newJsonParser();
content = "{\"foo\":[\"apple\", \"\", \"banana\"]}";
Map jsonData = parser.parseJson(content);
So the content is {"foo":["apple", "", "banana"]}, and parsing it causes an
error at the empty string between apple and banana.
The error message I get is:
com.json.exceptions.JSONParsingException: @Key-Heirarchy::root/foo[1]/ @Key::
Value is expected but found empty...@Position::19
I am using JDK 1.6 32-bit on Windows 7 64-bit.
(Also, @Key-Heirarchy should probably be spelled @Key-Hierarchy)
Original comment by bobth...@gmail.com
on 4 Mar 2014 at 4:07
Should be fixed in https://code.google.com/p/quick-json/issues/detail?id=11
Original comment by noack.mi...@googlemail.com
on 23 Oct 2014 at 3:36
Original issue reported on code.google.com by
each.dev...@gmail.com
on 17 Dec 2013 at 8:48