Get a JSON object from the argument list
Argument list
Index of the argument to take as a JSON object
JSON object or null if the value is not a JSON object
Get a JSON object from the argument list