Skip to search.
json · JSON JavaScript Object Notation

Group Information

  • Members: 530
  • Category: Data Formats
  • Founded: Jul 19, 2005
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

  Messages Help
Advanced
Encoding question..   Message List  
Reply Message #1 of 1841 < Prev |
I have a string containing a single \ character. I'm not quite sure
what this string should look like once json encoded. My javascript
encoder (a popular one) is giving me `\\\\` ? Shouldn't the correct
encoding be `\\`?

--
Matt





Wed Jul 20, 2005 12:38 am

mpcmtechnolo...
Offline Offline
Send Email Send Email

Message #1 of 1841 < Prev |
Expand Messages Author Sort by Date

I have a string containing a single \ character. I'm not quite sure what this string should look like once json encoded. My javascript encoder (a popular one)...
mpcmtechnologies
mpcmtechnolo... Offline Send Email
Jul 20, 2005
12:39 am

... No, it should be "\\". JSON does not use the ` character....
Douglas Crockford
douglascrock... Offline Send Email
Jul 20, 2005
3:07 am

... Sorry, I have a value of \ and it is encoding it to \\\\. The backticks where added to show that that was the value. Sorry for the confusion. The parser I...
MPCM
mpcmtechnolo... Offline Send Email
Jul 20, 2005
3:28 am
< Prev Topic  |  Next Topic >
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help