Function

Foundryjson_node_to_bytes_full

unstable since: 1.1

Declaration [src]

DexFuture*
foundry_json_node_to_bytes_full (
  JsonNode* node,
  gboolean pretty_print
)

Description [src]

Converts node to a GBytes asynchronously.

If pretty_print is TRUE, the output will be formatted with 4-space indentation for readability.

node must not be modified after calling this function until the future has resolved or rejected.

Available since: 1.1

Parameters

node

Type: JsonNode

A JsonNode.

The data is owned by the caller of the function.
pretty_print

Type: gboolean

Whether to pretty print the JSON output.

Return value

Type: DexFuture

A future that resolves to a GBytes or rejects with error.

The caller of the function takes ownership of the data, and is responsible for freeing it.