Export the plist_t structure to JSON format.
- Parameters
-
| plist | the root node to export |
| plist_json | a pointer to a char* buffer. This function allocates the memory, caller is responsible for freeing it. |
| length | a pointer to an uint32_t variable. Represents the length of the allocated buffer. |
| prettify | pretty print the output if != 0 |
- Returns
- PLIST_ERR_SUCCESS on success or a plist_err_t on failure
- Note
- Use plist_mem_free() to free the allocated memory.