make json_value_format() returned memory allocated with json_malloc()