[Solved] How writing JSON to mbuf instead of a fixed size buffer?

I am generating JSON in Mongoose OS using frozen.

Right now, I am going to a fixed size buffer using JSON_OUT_BUF. The fixed buffer size is probably going to be insufficient at some point.

I desire to use an mbuf for the output. Before I go to the work of writing my own glue code to interface frozen to an mbuf, I thought I would check to see if this is already done by someone else, or is buried somewhere in Mongoose OS?

You have several options:
json_asprintf
JSON_OUT_MBUF

JSON_OUT_MBUF is exactly what I needed. Thank you.