endocrimes / Jay

Pure-Swift JSON parser & formatter. Fully streamable input and output. Linux & OS X ready. Replacement for NSJSONSerialization.
MIT License
132 stars 19 forks source link

Also conform to RFC7159 #5

Open czechboy0 opened 8 years ago

czechboy0 commented 8 years ago
krzyzanowskim commented 8 years ago

@czechboy0 Jay does not conforms to RFC ? what is missing

czechboy0 commented 8 years ago

Jay now conforms to RFC4627 (the original JSON standard), but not yet to RFC7159 (updated JSON standard).

The only changes I've noticed are that the new JSON standard allows fragments, whereas the old one only allows array or object as the top level object. So the only changes needed are to add an option to also parse non-container types at the top level.

Do you need fragments on top level?

krzyzanowskim commented 8 years ago

maybe I can help with that

czechboy0 commented 8 years ago

I started on it yesterday but discovered it will require quite lot of changes. So I'd prefer to only add it if people really need it.

Pretty printing on the other hand is up for grabs, that would be great to have!