add bracket
rm first level braces
rm all line ending commas