cpplot::
::
to_json
Serialise bar plot data into a valid json string.
Produces figure data JSON similar to: {“x”: [“giraffes”, “orangutans”, “monkeys”], “y”: [20.1, 14.4, 23.3], “type”: “bar”}