json generation part 1
formatting fix