Add the official toon_format package to your project
pip install toon_format
Usage Example
Quick start guide for encoding and decoding TOON format in Python
from toon_format import encode, decode
# Your JSON data
data = {"name": "Alice", "age": 30}
# Convert to TOON format
toon_string = encode(data)
print(toon_string)
# Output:
# name: Alice
# age: 30
# Convert back to JSON
json_data = decode(toon_string)