Text to structure: a way to standardize outputs

All I tried failed, so I ended up using openAI, asking in the system prompt to reply with a JSON structure. It doesn’t work perfectly, but you can format the string into a valid JSON with some processing of the response.
You’ve also got the JSON mode, but the response is much poorer – with my requirements-. You may also want to look into function calling.