I'm writing a unit test case, where I'm comparing one json string to expected json string, but the assert equals is having problem.
My code is
output = {"id":12,"firstName":"Vengamamba","lastName":"M"}
assertEquals("{\"id\":\"12\",\"firstName\":\"Vengamamba\",\"lastName\":\"M\"}", output);
It says both are not equal. Any help would be greatly appreciated.
Thanks