create json structure for report query