Warning
JONF.py draft is archived in favor of TTT - please check it.
NOTE: This is an early alpha version
# pip install jonf
import jonf, textwrap
text = textwrap.dedent(
"""\
compare =
- true
= true
"""
).rstrip()
data = {
"compare": [
"true",
True,
]
}
# TODO:
# assert jonf.parse(text) == data
assert jonf.format(data) == text
print(jonf.format(data))
Output:
compare =
- true
= true