The JSON syntax is very simple but also very strict with names and strings. So i am looking for a JSON library that allows some relaxed syntax for strings.
Any token not startng with
[0-9],:[]{}” and not is true, false
or null is a valid name/string.
So that this 2 JSON are equivalent
{
"name":"Eric",
"addr":"461, Ocean Boulevard"
}
{
name:Eric,
addr:"461, Ocean Boulevard"
}
Update
I googled again and found RSON for Python, something similar for Java ?
Your best bet is likely to write a small converter class, which can translate to and from your “quasi-JSON”. Should take less than an hour, and then you’re free to use whatever standard library you please.
Update: Since you’ve found a Python script that does what you want, and since that “RSON” code is pretty straightforward and self-contained in a single file… why not simply embed it your Java app using the http://www.jython.org/ library?