Syntax
const char* json_string_value(
const json_t* string
);
Parameters
- string
- [in] JSON string
Return value
Returns the associated value of string as a null terminated UTF-8 encoded string.
Remarks
Returns the associated value of string as a null terminated UTF-8 encoded string, or NULL if string is not a JSON string.
The returned value is read-only and must not be modified or freed by the user. It is valid as long as string exists, i.e. as long as its reference count has not dropped to zero.
Requirements
- Header file:
-
lib.h : System E6.0 or later.
jansson.h
jansson_config.h
jansson_log.h
- Library file:
-
libJansson.a
libSTARTUPOPH5000.a : System E6.0 or later.
See also
Last updated: 2022/01/26