diff options
-rw-r--r-- | libhb/hb_dict.c | 2 | ||||
-rw-r--r-- | libhb/hb_dict.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libhb/hb_dict.c b/libhb/hb_dict.c index 634b25b09..1eb42b059 100644 --- a/libhb/hb_dict.c +++ b/libhb/hb_dict.c @@ -415,7 +415,7 @@ hb_value_get_string_xform(const hb_value_t *value) return result; } -char * hb_value_get_json(hb_value_t *value) +char * hb_value_get_json(const hb_value_t *value) { return json_dumps(value, JSON_INDENT(4) | JSON_SORT_KEYS); } diff --git a/libhb/hb_dict.h b/libhb/hb_dict.h index 243d8885d..ac3a562b0 100644 --- a/libhb/hb_dict.h +++ b/libhb/hb_dict.h @@ -113,7 +113,7 @@ int hb_value_get_bool(const hb_value_t *value); * caller must free the returned string */ char * hb_value_get_string_xform(const hb_value_t *value); /* converts value to json string */ -char * hb_value_get_json(hb_value_t *value); +char * hb_value_get_json(const hb_value_t *value); /* write json representation to a file */ int hb_value_write_file_json(hb_value_t *value, FILE *file); int hb_value_write_json(hb_value_t *value, const char *path); |