The problem is that you're passing illegal characters in your URI string:Java - Convert String to valid URI object
http://someurl.com/passfail?parameter={"data1":"123456789","data2":"123456789"}>
You need to "escape" the offending characters in your URI.
Here are some alternatives:
and, last but not least:
PS: what about that ">" in your URL?