[Specification] When overriding to_json, pass on generator arguments.

It is up to the caller to decide wether or not to generate a pretty
version of the JSON.

See https://github.com/flori/json/blob/master/README.rdoc#more-examples.