#!/usr/bin/awk -f
BEGIN {
data = ""
}
/^\]/ {
gsub("},$","}",data)
print data
print
next
/},$/ {
data = $0
{