Write an object representation to a json file.
See https://docs.python.org/3/library/json.html#json.dump
miscset.io.read_yaml
miscset.io.write_stderr