working on JSON format output