makamaka/JSON-PP — pull request #7 by sjmiller (2013-12-06 22:48:33+00:00)
Title: Fixes for incr_parse for list context and partial values

There are a couple incompatibilities with JSON:PP incremental parsing and the documented functionality, this attempts to correct those.

Particularly doing incremental parsing of a partial JSON object/string in scalar or list context should result in undef or an empty array being returned rather than croaking. This should fix that.

Also incr_parse in list context was only returning the first JSON object, even if multiple were available, this should correct that as well.

I also added some additional unit tests to check for these cases.