4 ms·
Further to this you can even include the trailing commas and hack in comments in the yaml-like json value: import yaml data = yaml.load(""" {
by jborean93 5y ago
Further to this you can even include the trailing commas and hack in comments in the yaml-like json value:
import yaml
data = yaml.load("""
{
"firstName": "John",
# Woah comments
"lastName": "Smith",
}
""", yaml.SafeLoader)
Granted I still like YAML when it sticks to the basics and avoid some of the messier aspects, like anchors, when I can.