nathanday / ndjson

Objective-C JSON parser
1 stars 0 forks source link

NDJSONParser should be able to handle NDJSON mid stream. #8

Closed nathanday closed 12 years ago

nathanday commented 12 years ago

It should be possible to start parsing JSON using event driven parsing and then switch to object generation for example.

nathanday commented 12 years ago

Could perhaps add a listening mechanism for key paths, or alternatively add a class method to the NDJSON informal protocol that returns block or selectors for keys. Could perhaps look for instance methods similar to the setFor: type conversion methods, something like setforNDJSON: to accept the NSJSON parser for a certain key.

nathanday commented 12 years ago

Changed this to version 1.0.0, because this is really need by core data as you will often not want the root object added to the database if the root object represents a response object with data and error entries.

nathanday commented 12 years ago

Added bug label, because for parsing to core data, this feature is extremely important, it is vary rare that you want the entire JSON document in your core data database. Also the best way to do this is for NSJSONParser to have a delegate which if forwards all of the NDJSON delegate methods onto.

nathanday commented 12 years ago

I have this working when switching from event driven to another method