bignerdranch / Freddy

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

From JSON to json String #132

Closed lucatorella closed 8 years ago

lucatorella commented 8 years ago

Sometimes it could be useful to have the string version of the json. If I'm not wrong, the only way is using serialize() get an NSData and then get a String back. Does it make sense to create a method to return a string representation?

randomstep commented 8 years ago

127 discussed this a bit. Yes, serialize and then get the string back. What's the use case?

lucatorella commented 8 years ago

It's a quite complicated scenario, where I need to create a JSON and pass it back to JavaScript via evaluateJavaScript

mdmathias commented 8 years ago

177 addresses this request. We'll be taking a look at that this week.

lucatorella commented 8 years ago

Great! 👍