Support for JSON Objects with ending commas

This is a more robust parser. A single tiny change. Updated readme and added a new test too.