micseydel wrote:I never write JSON by hand. I create a Python structure and use json.dumps(). You can complain to a user if they violate the syntax, or even place a comment in the config file letting them know.
It sounds like ast is best for your situation though. I didn't know about it before this thread, very cool.
Yeah it really is cool and easy to read!