Change invoke method input specification

Change The invoke specification in a way that it doesn't take an array
of JSON objects, but rather an object with a property for each parameter
optimize and fix the JSONSchema transformations