Re-add to_json_dict/from_json_dict.