TouchCode / TouchJSON

A humane JSON Objective-C un-framework. (TouchJSON has been deprecated - see README)
http://touchcode.com/
Other
800 stars 169 forks source link

"Did not consume all data" error when deserializing JSON which has null value. #23

Open jaeheeko opened 11 years ago

jaeheeko commented 11 years ago

Hi. I've been using CJSONDeserializer without any problems for a long time. But the latest commit (bfffb7301ef33233228ec85459876d55b72cf710) makes it impossible to parse JSON which has null value when the nullObject property is set to NULL. It causes "Did not consume all data" error and produces nil. Could you check this problem? Here's the part of JSON that I failed to deserialize.

user = { age = 26; bio = ""; birthday = "1988-02-28"; }

MattiaConfalonieri commented 9 years ago

I have the same problem here....