worked on JSON generator