pip install jsonthat
jt --setup
echo 'my name is jay' | jt
{
"name": "Jay"
}
- Structure output with a schema
- Pipe content directly
- Support for multiple LLM providers: OpenAI, Claude, Mistral, Ollama
- Local LLM support with Ollama
- CLI available as a pip package
- Stream output
- Select different model names from API providers
- Partial JSON output
- Handling of long content
- Advanced documentation
- More providers (e.g., Gemini)
-
--line
flag to transform each line of input -
--usage
flag to show usage with token count - Python library