How do I parse json like this:
[{"name":"joe","address","Main Street"}]
with the from() method in restassured:
assertEquals(true, from(myjson).getString("name"));
I get this error:
[Fatal Error] :1:1: Content is not allowed in prolog.
How do I parse json like this:
[{"name":"joe","address","Main Street"}]
with the from() method in restassured:
assertEquals(true, from(myjson).getString("name"));
I get this error:
[Fatal Error] :1:1: Content is not allowed in prolog.
My guess would be you're using XmlPath.from() instead of JsonPath.from(), so it's trying to parse your JSON as XML.