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 |
the string representation of the node |