Description of problem: There is an error in Example 4. An Array from http://docs.redhat.com/docs/en-US/JBoss_Operations_Network/3.1/html/Dev_Writing_JON_Command-Line_Scripts/multi.html see bug #833798, the same code is used.
I updated the example based on the first example that you gave in bug 833798. Thanks! http://docs.redhat.com/docs/en-US/JBoss_Operations_Network/3.1/html/Dev_Writing_JON_Command-Line_Scripts/multi.html