From c341399498d50461c595491b52903e865aca329f Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Tue, 15 Dec 2015 13:52:28 +0000 Subject: [PATCH] Document 'json' function --- site/troubleshooting.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/site/troubleshooting.md b/site/troubleshooting.md index bc5bbb2b..a3df5a23 100644 --- a/site/troubleshooting.md +++ b/site/troubleshooting.md @@ -228,6 +228,12 @@ inspect`: $ weave report -f {% raw %}'{{.DNS.Domain}}'{% endraw %} weave.local. +Weave adds a template function, `json`, which can be applied to get +results in JSON format. + + $ weave report -f {% raw %}'{{json .DNS}}'{% endraw %} + {% raw %}{"Domain":"weave.local.","Upstream":["8.8.8.8","8.8.4.4"],"Address":"172.17.0.1:53","TTL":1,"Entries":null}{% endraw %} + ### List attached containers weave ps