I was going to ask if this or other Ollama models support structured output (like JSON).
Then a quick search revealed you can as of a free weeks ago
Then a quick search revealed you can as of a free weeks ago
Lots of other models will work nearly as well though if you just give them a clear schema to follow and ask them to output json only, then parse it yourself. Like I've been using gemma2:9b to analyze text and output a json structure and it's nearly 100% reliable despite it being a tiny model and not supporting tools or structured output officially.