Git Product home page Git Product logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
It's not incorrect to escape a character even is not necessary according to 
JSON spec. The purpose is to eliminate some issues in a certain circumstance. 
But I agree to review it. May I ask what trouble it causes by escaping these 
characters?  

Original comment by [email protected] on 29 Nov 2011 at 3:25

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

from json-simple.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
If you escape a character in the payload (content of any variable) you are 
changing the content.

Changing a text from "foo - bar" to "foo \u2013 bar" does not seem a good 
solution.

Characters between \u2000 and \u206F are general punctuation symbols.

I can't see any reason for not fixing this. 

Original comment by [email protected] on 30 May 2012 at 9:33

from json-simple.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
For what its worth,  I suffer from the same problem. 

When the Josn decides to escape the charterer it lengthens the string.
And in Push Notification, you are limited by the size of Payload (256 byte 
total) which isn't much. 

So characters in this range \u2000 - \u206F are represent with 6 bytes and not 
2.


Original comment by [email protected] on 31 Jul 2013 at 8:50

from json-simple.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.