JSON formatting to comply with valid json (AISVIEW-37)