Generator.toData

string toData(out size_t length)

Generates a JSON data stream from generator and returns it as a buffer.

Parameters

lengthreturn location for the length of the returned buffer

Returns

a newly allocated string holding a JSON data stream