Skip to main content

to_string

Function to_string 

Source
pub fn to_string(node: &Node, pretty: bool) -> GString
Available on crate feature v1_2 only.
Expand description

Generates a stringified JSON representation of the contents of the given node.

§node

a JSON tree

§pretty

whether the output should be prettyfied for printing

§Returns

the string representation of the node