Dump the IAM state to a JSON string for persistent storage. The resulting string must be freed with nm_iam_serializer_string_free().
bool nm_iam_serializer_state_dump_json(struct nm_iam_state* state, char** out)
- [in] State to dump from
- [out] Where to put serialized state
true iff the state was serialized successfully