Example of to_json works on the test case

Returning complex return types as JSON using to_json() function will
most probably work. It will be much more difficult though to find the
usable way to pass JSON as parameters and then force the correct sproc
call.