cpplot::
::
to_json
Serialise axis into a valid json string.
Produces json like:
"xaxis": {"title": "x1"}