Fixed json generation: elements had no separating commas