I am using bubble’s JSON assistant to convert the text returned as a JSON array (still a text) from OpenAI’s ChatGPT completions API. When I pass the hard-coded, escaped JSON return results to JSON Assistant, my app works fine but when I insert OpenAI’s response (choices->model) via a dynamic input, it errors out with error 400. I marking the dynamic input as JSON safe, have verified the prompt and the return result, but I keep getting the same error. I have watched several youtube videos and cant figure out where’s it going wrong. Here is the escaped json which when hardcoded works fine
[\r\n {\r\n \"common_name\": \"Zinnia elegans\",\r\n \"scientific_name\": \"Zinnia elegans\",\r\n \"growth_cycle\": \"Annual\",\r\n \"hardiness_zone_range\": \"3-10\"\r\n },\r\n {\r\n \"common_name\": \"Thumbelina Zinnia\",\r\n \"scientific_name\": \"Zinnia elegans 'Thumbelina'\",\r\n \"growth_cycle\": \"Annual\",\r\n \"hardiness_zone_range\": \"3-10\"\r\n },\r\n {\r\n \"common_name\": \"Zinnia angustifolia\",\r\n \"scientific_name\": \"Zinnia angustifolia\",\r\n \"growth_cycle\": \"Annual\",\r\n \"hardiness_zone_range\": \"3-10\"\r\n },\r\n {\r\n \"common_name\": \"Giant Zinnia\",\r\n \"scientific_name\": \"Zinnia elegans 'Giant'\",\r\n \"growth_cycle\": \"Annual\",\r\n \"hardiness_zone_range\": \"3-10\"\r\n },\r\n {\r\n \"common_name\": \"Zinnia haageana\",\r\n \"scientific_name\": \"Zinnia haageana\",\r\n \"growth_cycle\": \"Annual\",\r\n \"hardiness_zone_range\": \"3-10\"\r\n },\r\n {\r\n \"common_name\": \"Magellan Zinnia\",\r\n \"scientific_name\": \"Zinnia elegans 'Magellan'\",\r\n \"growth_cycle\": \"Annual\",\r\n \"hardiness_zone_range\": \"3-10\"\r\n },\r\n {\r\n \"common_name\": \"Profusion Zinnia\",\r\n \"scientific_name\": \"Zinnia hybrida 'Profusion'\",\r\n \"growth_cycle\": \"Annual\",\r\n \"hardiness_zone_range\": \"3-10\"\r\n },\r\n {\r\n \"common_name\": \"Zinnia grandiflora\",\r\n \"scientific_name\": \"Zinnia grandiflora\",\r\n \"growth_cycle\": \"Perennial\",\r\n \"hardiness_zone_range\": \"6-10\"\r\n },\r\n {\r\n \"common_name\": \"Crystal White Zinnia\",\r\n \"scientific_name\": \"Zinnia elegans 'Crystal White'\",\r\n \"growth_cycle\": \"Annual\",\r\n \"hardiness_zone_range\": \"3-10\"\r\n },\r\n {\r\n \"common_name\": \"Profusion Double White Zinnia\",\r\n \"scientific_name\": \"Zinnia hybrida 'Profusion Double White'\",\r\n \"growth_cycle\": \"Annual\",\r\n \"hardiness_zone_range\": \"3-10\"\r\n }\r\n]