Added ToJSONFilter instances to allow use of script arguments.