summaryrefslogtreecommitdiff
path: root/src/config_tree.ml
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-10-27 14:23:12 +0100
committerDaniil Baturin <daniil@baturin.org>2019-10-27 14:23:12 +0100
commitbf85f6a275ea2967bc39fdc6ddc5c96e929188e8 (patch)
tree7e4f92b98ed452d32948988b7d7d64993133522b /src/config_tree.ml
parenta25916f7ac3cfffbdbb341d099120d421d284378 (diff)
downloadvyos1x-config-bf85f6a275ea2967bc39fdc6ddc5c96e929188e8.tar.gz
vyos1x-config-bf85f6a275ea2967bc39fdc6ddc5c96e929188e8.zip
Expose the JSON AST export function.
Diffstat (limited to 'src/config_tree.ml')
-rw-r--r--src/config_tree.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config_tree.ml b/src/config_tree.ml
index a9dd61e..31c0d76 100644
--- a/src/config_tree.ml
+++ b/src/config_tree.ml
@@ -252,3 +252,5 @@ let render_commands node path =
let render_config = Renderer.render_config
let render_json = JSONRenderer.render_json
+
+let render_json_ast c = to_yojson c |> Yojson.Safe.to_string