we have added the jsonapi interface but almost nothing uses it yet. Migrating functions to it will be a project over time<span></span><br><br>On Wednesday, August 26, 2015, David McNab <<a href="mailto:davidmcnabnz@gmail.com">davidmcnabnz@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi there,<br><br></div>How do you do API calls in JSON? Or, how do I get a list of all the API calls which can receive JSON parameters and return JSON return values?<br><br></div>For example, in the console, I tried 'show calls', and got a list of calls. I did the same call from via XML-RPC from a python script, and got a single string back, containing what would have been output to the console. But when I tried, from the console:<br><br></div><div><span style="font-family:monospace,monospace"><b>json {"command":"show calls", "format":"pretty", "data":{}}</b></span><br></div><div><br>I got an invalid response.<br><br></div><div>I also tried:<br><br><b>json {"command":"show", "format":"pretty", "data":"calls"}</b><br><br></div><div>but got similar.<br><br></div><div>Is there a general sceme for invoking all the console API commands (and receiving responses) in JSON format?<br><br></div><div>If not, I guess I need to write some parsers to process each command's output string.<br><br></div><div>Cheers<br></div><div>David<br><br></div></div>
</blockquote>