Converted calls and tests to JSON.

Also created a create_prefixed_param method for all clients to use.