Updated: April 19, 2023 |
Express the current multimap as a string
#include <pips/multimap.h>
char* pips_multimap_dup_string(const pips_multimap_t *multimap)
This utility function converts the current pips_multimap_t instance into a JSON string. The JSON string is composed of a single object containing one or more key-value mappings.
On success, a character string, allocated on the heap, expressing the current multimap as a JSON object. The returned string becomes owned by the caller, who is responsible for deleting it. On error, NULL (errno is set).