formatting for json data