Its a very cool way how to do also do e.g. system administration, fill in config files, etc...
The example there is also a good demonstration of how to use json on a more complex object and read/write to file.