Comments (2)
Hmm... this one is interesting because I have some specific tests for some of these:
func testParseNumberTwoDot() {
let string = "[-2.]"
let jsvalue = try? JSValue.parse(string)
XCTAssertTrue(jsvalue == nil)
}
func testParseNumberTwoDotE3() {
let string = "[2.e-3]"
let jsvalue = try? JSValue.parse(string)
XCTAssertTrue(jsvalue == nil)
}
This successfully gives me an error. I just added some more tests locally for the rest of the cases and I see an error.
Are you using 2.0.2 and what is your setup?
from json-swift.
My mistake, I messed up with other results.
I just updated the numbers that are parsed but are not part of JSON, strictly speaking.
According to the RFC, parsers are free to accept them, but it may lead to interoperability issues.
from json-swift.
Related Issues (20)
- dyld_fatal_error: XCode 6.1 compiled code crashes on iPhone but not Simulator. HOT 6
- Double is not convertible to JSValue HOT 1
- Strange inconsistency when unwrapping a string HOT 1
- Unicode decoding issue HOT 2
- Array order different in app than in JSON API HOT 2
- Does not compile with 6.3 beta 4 HOT 2
- Does not compile in Xcode v6.3 (6D570) HOT 2
- Stringify should escape double quotes HOT 1
- How to install? HOT 1
- Support CocoaPods and Carthage HOT 1
- V2 doesn't support iOS? HOT 1
- Pretty printing output is invalid HOT 1
- Pretty printing arrays yields invalid json
- Swift 3.0 support HOT 1
- Some tests have been disabled for Linux.
- Enable Travis-CI builds for Linux. HOT 1
- Crash when parsing huge exponents HOT 3
- Crash when parsing many open array HOT 1
- Performance
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 json-swift.