Decodes the arguments JSON string into a JsonObject. If arguments is null, the function will return null.
The Json object to be used for decoding, defaults to a default Json instance