This line would invalidate the JSON format.. noticing that.. for JSON array, only the last one have no comma, all previous elements needs a comma to separate. Lesson Learnt: please test your code before issue the pull request.