bignerdranch / Freddy

A reusable framework for parsing JSON in Swift.
MIT License
1.09k stars 120 forks source link

Add support for decoding Int and Double from a String representing a double or int #194

Closed alexsporn closed 7 years ago

alexsporn commented 8 years ago

This adds support for parsing a string representing an integer ("42") or double ("4.2") into the correct Swift.Int and Swift.Double types. This helps to parse JSON from APIs where integers and doubles are represented as strings.

alexsporn commented 8 years ago

Thanks for the feedback. I'll have a look at the comments and update the PR

alexsporn commented 7 years ago

I cherry-picked the Tests from #205

mdmathias commented 7 years ago

Sorry to be a pain, but we released version 3.0.0 today. Would you mind updating this with the latest from master?

alexsporn commented 7 years ago

@mdmathias I updated the code and tests to Swift 3

alexsporn commented 7 years ago

@mdmathias can you trigger a new travis build? I think the AppleTV Simulator was stuck when it ran

mdmathias commented 7 years ago

I restarted the build.

alexsporn commented 7 years ago

@mdmathias I think travis had an issue there. All tests are passing here