I am trying to pass the below line in my URL
metadata={"occasion":[{"metavalue":"day-casual"}],"fit":[{"metavalue":"slim"}]}
But when I run the test, am getting error as below
java.net.URISyntaxException: Illegal character in query at index 220: at java.net.URI$Parser.fail(URI.java:2848) at java.net.URI$Parser.checkChars(URI.java:3021) at java.net.URI$Parser.parseHierarchical(URI.java:3111) at java.net.URI$Parser.parse(URI.java:3053) at java.net.URI.(URI.java:588) at java.net.URL.toURI(URL.java:946)
I guess the problem is with the string with special characters am trying to pass in the URL.
Can someone please help me to encode and send.