so in other words if the following Text is inputted by JQuery to JSON Parser
 
Martin O'Sullivan sends XYZ to Maurizio D'Milano 

The JQuery-JSON Parse could possibly encode the tickmark embedded in the 
sirnames incorrectly
 
what if we frontend all calls to JQuery.parse with a Json_Encoder which would 
encode 

Martin O'Sullivan sends XYZ to the Maurizio D'Milano 

as

Martin O\u0027Sullivan sends XYZ  to Maurizio D\u0027Milano

conversely returning from JSON Parse the Json_Decoder would decode 

Martin O\u0027Sullivan sends XYZ  to Maurizio D\u0027Milano

as
Martin O'Sullivan sends XYZ to Maurizio D'Milano 

?
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.

  


> From: [email protected]
> Date: Wed, 10 Apr 2013 11:37:44 +0200
> Subject: Re: [LANG] How to escape JSON data
> To: [email protected]
> 
> Actually, when I was talking about the best way, I was asking for a
> "common" way.
> 
> On 10 April 2013 02:39, Daniel Pitts <[email protected]> wrote:
> > I might suggest looking into the json.org library.
> >
> >
> > On 4/9/13 7:36 AM, Maurizio Cucchiara wrote:
> >>
> >> OK,
> >> there is already an opened issue [1]
> >>
> >> [1] https://issues.apache.org/jira/browse/LANG-797
> >>
> >> Twitter :http://www.twitter.com/m_cucchiara
> >> G+ :https://plus.google.com/107903711540963855921
> >> Linkedin :http://www.linkedin.com/in/mauriziocucchiara
> >> VisualizeMe: http://vizualize.me/maurizio.cucchiara?r=maurizio.cucchiara
> >>
> >> Maurizio Cucchiara
> >>
> >>
> >> On 9 April 2013 12:51, Maurizio Cucchiara <[email protected]> wrote:
> >>>
> >>> Hi guys,
> >>> what is the best way to escape json data?
> >>>
> >>> We (the Struts team) have been experiencing an issue [1] with the ECMA
> >>> Script translator (which, at first glance, could seem the right one).
> >>>
> >>> It turned out that the Java translator which best fits to JSON, but I
> >>> don't think it's a good solution to use a translator designed for
> >>> other needs.
> >>>
> >>> Should we define a custom translator?
> >>>
> >>> [1] https://issues.apache.org/jira/browse/WW-4041
> >>>
> >>>
> >>> Twitter :http://www.twitter.com/m_cucchiara
> >>> G+ :https://plus.google.com/107903711540963855921
> >>> Linkedin :http://www.linkedin.com/in/mauriziocucchiara
> >>>
> >>> Maurizio Cucchiara
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
                                          

Reply via email to