Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue May 31, 2015 · 5 comments
Closed

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

GoogleCodeExporter opened this issue May 31, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

I too experience this problem, has anyone looked at this?

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

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

let us know when you do a new release

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

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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

  • Changed state: Duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant