add an utility function to dump JSON file
utilize U.json_dump