Add a comma to the last line of JSON mappings