--------------------------------------------------------- lines 17-63 of file: include/cppad/core/graph/to_json.hpp --------------------------------------------------------- {xrst_begin to_json} Json AD Graph Corresponding to an ADFun Object ############################################## Syntax ****** | *json* = *fun* . ``to_json`` () Prototype ********* {xrst_literal // BEGIN_PROTOTYPE // END_PROTOTYPE } fun *** is the :ref:`adfun-name` object. json **** The return value of *json* is a :ref:`json_ad_graph-name` representation of the corresponding function. Base **** is the type corresponding to this :ref:`adfun-name` object; i.e., its calculations are done using the type *Base* . RecBase ******* in the prototype above, *RecBase* is the same type as *Base* . Restrictions ************ The ``to_json`` routine is not yet implement for some possible :ref:`ADFun-name` operators; see :ref:`graph_op_enum@Missing Operators` . {xrst_toc_hidden example/json/to_json.cpp } Example ******* The file :ref:`to_json.cpp-name` is an example and test of this operation. {xrst_end to_json}