Comments (8)
Original comment by mikechambers
on 2 Jul 2008 at 4:40
- Changed state: Accepted
from as3corelib.
This is a strict mode / non-strict mode change. When strict mode is turned off
we
should allow for decoding of non-quoted object identifier strings.
It is not valid JSON to have object identifiers not have quotes. However, a
lot of
other JSON lirabries seem to output these invalid strings by default.
So, when strict mode is ON, a parse error should be generated as is the current
behavior.
When strict mode is OFF, we should process the identifier like it was a string
even
if it isn't enclosed in quotes
Original comment by darron.schall
on 23 Oct 2008 at 2:15
- Changed title: Allow for decoding of non-quoted object identifier strings in a non-strict decode mode
- Added labels: Type-Enhancement, strict
- Removed labels: Type-Defect
from as3corelib.
Original comment by mikechambers
on 7 Nov 2008 at 7:28
from as3corelib.
Issue 83 has been merged into this issue.
Original comment by darron.schall
on 10 Dec 2008 at 4:46
from as3corelib.
I'm interested in which JSON libraries you know of that emit unquoted property
names. The es5-discuss mailing list is currently discussing whether the
standard ES5
JSON parser will need to accept them.
Original comment by [email protected]
on 4 Jun 2009 at 10:16
from as3corelib.
Has this issue been resolved yet? Been expecting it to be resolved since last
Winter
break...tried the latest version but to no avail
Original comment by [email protected]
on 12 Jul 2009 at 1:07
from as3corelib.
@evan - No, this has not been resolved yet. However, as long as you're using
properly formatted JSON you
shouldn't run into trouble.
I'm still debating if this is really worth implementing because it goes against
JSON syntax (per es5 discussions).
If a library claims to output JSON strings, then the library should be using
quoted object keys.
Original comment by darron.schall
on 13 Jul 2009 at 2:55
from as3corelib.
@darron - Oh ok, thank you very much for your prompt reply. See we are working
with
Moodle and the MySql database doesn't allow for quoted values to be stored.
From
what I understand, that is one of the reasons why there is a demand and use
case for
parsing non-quoted JSON strings.
Any chance we may re-consider? What options do you there are?
Original comment by [email protected]
on 13 Jul 2009 at 2:21
from as3corelib.
Related Issues (20)
- BSD License
- PSD parser
- JSONEncoder bug on UTF-8 chars
- Request for StringUtil.contains
- Bug: JSONDecoder does not accept string ending in \u-escape sequence HOT 2
- Enhancement: Use a timer to close the FileTarget log stream. More efficient during heavy logging
- Escaped single quote is not correctly decoded
- Use "valueOf()" to customize JSON object
- Add line numbers to parse errors HOT 2
- JSONParseError: Unexpected c encountered
- After unwatch() is called in FileMonitor, eventListener is removed but is never re-added on watch().
- JSONDecoder fails with token null reference when closing right brace is missing
- FileMonitor onTimerEvent does not fire
- URI.makeAbsoluteURI does not handle local windows filepaths properly HOT 1
- JSON doesn't encode ObjectProxy and ManagedObjectProxy correctly
- JSON Object Problem within ArrayCollection
- JSONParseError: Unexpected e encountered HOT 1
- JSONParseError: Unexpected c encountered
- The HMAC-SHA1 signature generated is different for Ubuntu JAUNTY
- [deleted issue]
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 as3corelib.