<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 30, 2019, 13:52 Damian Ivanov <<a href="mailto:damianatorrpm@gmail.com">damianatorrpm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<br>
I have been looking around the documentation and could not find the<br>
specification on how to call a method with an array as parameter.<br>
busctl --user call rdns.to.dbus /path/ id.to.interface method_name<br>
"sssas" "string" "another_string" "yet_another_string"<br>
["array_string_1", "array_string_2"]<br>
<br>
Failed to parse '[arr' number of array entries: Invalid argument<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">busctl expects each array item as a separate argument, preceded by the number of items:</div><div dir="auto"><br></div><div dir="auto"><div dir="auto">busctl --user call rdns.to.dbus /path/ id.to.interface method_name</div><div dir="auto">"sssas" "string" "another_string" "yet_another_string"</div><div dir="auto">2 "array_string_1" "array_string_2"</div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br></blockquote></div></div></div>