Generator.toData

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

class Generator
string
toData
(
out size_t length
)

Parameters

length size_t

return location for the length of the returned buffer

Return Value

Type: string

a newly allocated string holding a JSON data stream