Comments (4)
From krinklemail on October 04, 2011 15:52:19
The server software is not relevant to JavaScript. What browser and browser version are you using ?
Summary: String should not be double escaped
from jquery-json.
From david.itexpert on November 20, 2011 14:39:08
I do have the same problem. $.toJSON("car") produces ""car"" as JSON string representation
from jquery-json.
From krinklemail on November 22, 2011 07:39:02
jquery-json has fairly extensive unit tests set up and they all work fine. Including "simple string".
Please provide a test case and/or what browser you are using so I can try to reproduce it (since $.toJSON("car") gives me "car" not ""car"", I use Google Chrome 15)
from jquery-json.
From krinklemail on June 13, 2012 09:37:31
Can't reproduce. Closing as invalid.
An additional note: $.toJSON outputs a JSON string, that means it will contain the quotation marks. This is how JSON works. If you are still experiencing issues, please provide more information about what you're doing, what doesn't work, and what you expect it do to instead. And also where/how you (intend) use it.
Status: Invalid
from jquery-json.
Related Issues (20)
- Reference toJSON and evalJSON directly to the native API if available HOT 1
- Inherited properties should be left out HOT 3
- Guard against object with own property "hasOwnProperty" HOT 2
- JSON is not defined on IE 9 compatibility mode HOT 4
- triggering parseJSON unnecessarily? HOT 2
- No tags in the source repository HOT 2
- Spelling errors in code comments HOT 1
- Adding support for loading HOT 1
- A simple example how to use jQuery-JSON HOT 2
- Array detection should not use .constructor (broken in IE9) HOT 3
- Constructed/Instantiated primitives should be stringified like their primitive equivalants. HOT 2
- Dummy issue HOT 1
- Array named properties are not included in json string HOT 3
- o.constructor === Array return fails with frames. HOT 1
- Serialize arrays with a toJSON method
- Different result in deferent page HOT 1
- Switch to UglifyJS for minification
- add bower.json file HOT 2
- Invalid procedure call or argument HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-json.