#!/usr/bin/awk -f
BEGIN {
data = ""
}
/^\[/ || /^\]/ {
print
next
/^ {/ && /},$/ {
print $0
/^ {/ {
data = $0
/},$/ {
data = sprintf("%s %s", data, $0)
print data
{