platform/shared/json/json_object.h in rhodes-3.5.1.12 vs platform/shared/json/json_object.h in rhodes-5.5.0

- old
+ new

@@ -294,10 +294,12 @@ */ extern struct json_object* json_object_new_string(char *s); extern struct json_object* json_object_new_string_len(char *s, int len); +extern struct json_object* json_object_new_string_len2(char *s, int len); + /** Get the string value of a json_object * * If the passed object is not of type json_type_string then the JSON * representation of the object is returned. * @@ -305,8 +307,8 @@ * be freed when the reference count of the json_object drops to zero. * * @param obj the json_object instance * @returns a string */ -extern char* json_object_get_string(struct json_object *obj); +extern char* json_object_get_string(struct json_object *obj, /*OUT*/int* len); #endif