<div dir="ltr">@Roland Kammerer: yes, that works too.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 12, 2020 at 1:08 PM Anton Tykhyy &lt;<a href="mailto:atykhyy@gmail.com">atykhyy@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">To reproduce the bug:<br>
&gt;&gt; drbdsetup new-resource test 0; drbdsetup show --json|jq<br>
&gt; parse error: Expected separator between values at line 6, column 21<br>
---<br>
 user/v9/drbdsetup.c | 15 +++++++++------<br>
 1 file changed, 9 insertions(+), 6 deletions(-)<br>
<br>
diff --git a/user/v9/drbdsetup.c b/user/v9/drbdsetup.c<br>
index de752484..4798cf62 100644<br>
--- a/user/v9/drbdsetup.c<br>
+++ b/user/v9/drbdsetup.c<br>
@@ -2401,13 +2401,16 @@ static void show_resource_list_json(struct resources_list *resources_list, char*<br>
                        printf(&quot;\n&quot;);<br>
                }<br>
<br>
-               printI(QUOTED(&quot;volumes&quot;) &quot;: [\n&quot;);<br>
-               indent++;<br>
-               for (device = devices; device; device = device-&gt;next)<br>
-                       show_volume_json(device);<br>
+               if (devices)<br>
+               {<br>
+                       printI(QUOTED(&quot;volumes&quot;) &quot;: [\n&quot;);<br>
+                       indent++;<br>
+                       for (device = devices; device; device = device-&gt;next)<br>
+                               show_volume_json(device);<br>
<br>
-               --indent;<br>
-               printI(&quot;]\n&quot;);<br>
+                       --indent;<br>
+                       printI(&quot;]\n&quot;);<br>
+               }<br>
<br>
                --indent;<br>
                printI(&quot;}&quot;);<br>
-- <br>
2.21.0.windows.1<br>
<br>
</blockquote></div>