LPS-45197 Accept JSON objects in Invoker for method arguments

Comes from https://github.com/jmnavarro/liferay-portal/pull/23