updated the json tool to use for_json