support for JSON Objects with ending commas; readme updated; test added