Json
Last updated
Last updated
The JSON Extension provides the for output rendering in pure JSON, as well as the that allows applications to use JSON configuration files as a drop-in replacement of the default .
Documentation References:
API References:
No external dependencies
This extension does not rely on any application level configuration settings or meta options.
In some edge cases users have wanted to use an alternative json module for performance reasons, in particular . It is possible to override the backend json
library module to use, such as ujson
or another drop-in replacement library. The recommended solution would be to override the :
In general, you likely would not set output_handler
to json
, but rather another type of output handler that displays readable output to the end-user (ex: Mustache, Jinja2, or Tabulate). However, Cement supports overriding handlers via command line options if the option is set. For example, -o json
will trigger the framework to use the json
output handler, overriding the default set in .
See the documentation on .