added support for more json in command-line to cli.js, cli.php #2203

[ci skip]
This tag has no release notes.