Is the split between `get_JSON_template` and `build_json_doc` worth it? Seems like unnecessary overhead.