Comments (9)
Updated by mikechambers on 2008-07-02T16:40:54
Original ticket set status to Accepted (we converted to open)
from as3corelib.
Updated by darron.schall on 2008-10-23T02:15:29
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
Removed label Type-Defect
Added label Type-Enhancement
Added label strict
Title changed from 'Allow for decoding of non-quoted object identifier strings in a non-strict decode mode' to 'Allow for decoding of non-quoted object identifier strings in a non-strict decode mode'
from as3corelib.
Updated by mikechambers on 2008-11-07T19:28:43
Original ticket set owner to darron.schall
from as3corelib.
Updated by darron.schall on 2008-12-10T16:46:17
Issue 83 has been merged into this issue.
from as3corelib.
Updated by davidsarah.hopwood on 2009-06-04T22:16:23
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.
from as3corelib.
Updated by [email protected] on 2009-07-12T01:07:34
Has this issue been resolved yet? Been expecting it to be resolved since last Winter
break...tried the latest version but to no avail
from as3corelib.
Updated by darron.schall on 2009-07-13T02:55:58
@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.
from as3corelib.
Updated by [email protected] on 2009-07-13T14:21:08
@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?
from as3corelib.
I am working on modifying the com.adobe.serialization.json.JSON* classes to resolve this issue. Would you like the code?
from as3corelib.
Related Issues (20)
- URI.isDirectory is broken
- Fat SWC for better code completion
- library is incompatible with Flash Builder 4.5 HOT 6
- Getting error while running example on win7/FB451 and Flashplayer 10
- Error parsing JSON: Unexpected end of input - Comments
- MD5.digest.endian should be LITTLE_ENDIAN(patch included)
- Include SWC in git HOT 3
- the JSON class conflicts with the Native JSON class for FlashPlayer 11 HOT 2
- The HMAC-SHA1 signature generated is different for Ubuntu JAUNTY
- JSONEncoder.objectToString() fails when the object has "internal" property
- JSON.decode undefined method HOT 3
- URI should use escape/unescape (ascii) as opposed to encode/decodeURI (UTF8)
- StringUtil
- JSONencode can't change output names
- JSON class not working when exporting to AIR — #1065: Variable JSON is not defined HOT 1
- importing JPGEncoder
- URI breaks query strings containing `=` symbol
- SHA set int var with number > int.MAX_VALUE
- Base64Encoder DOES NOT WORK WITH FLASH PROFESSIONAL OR ANIMATE CC
- [Bug] JPGEncoder.encode problem with loaded image's bitmap data
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.