Lovelyxredxpanda / json-simple

Automatically exported from code.google.com/p/json-simple
Apache License 2.0
0 stars 0 forks source link

http:// encoded as http:\/\/ using json simple lib #77

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
JSONObject obj = new JSONObject();
obj.put("url", "[http://www.google.com?key=value&key1=value1]");
System.out.println(obj.toJSONString())

output - {"url":"[http:\/\/www.google.com?key=value&key1=value1]"}

expected o/p - {"url":"[http://www.google.com?key=value&key1=value1]"}

Original issue reported on code.google.com by kunaldha...@gmail.com on 27 Jul 2012 at 1:41

GoogleCodeExporter commented 9 years ago
I too experience this problem, has anyone looked at this?

Original comment by kenz...@gmail.com on 4 Sep 2012 at 3:07

GoogleCodeExporter commented 9 years ago
It does conform to the JSON spec, but since there are a few requests on it, I 
will consider twisting the encoding approach.

Original comment by fangyid...@gmail.com on 4 Sep 2012 at 3:18

GoogleCodeExporter commented 9 years ago
let us know when you do a new release

Original comment by kenz...@gmail.com on 4 Sep 2012 at 3:28

GoogleCodeExporter commented 9 years ago
This is *not* a defect.  A JSON reader would be fully entitled to reject 
inbound JSON that doesn't escape the '/' character.

Please *do not* implement this feature request.

Original comment by ray.bellis on 11 Jul 2013 at 9:29

GoogleCodeExporter commented 9 years ago

Original comment by jon.cham...@gmail.com on 10 Aug 2013 at 3:15