We're about to implement API tests (in a .Net environment) for our new projects. I have no prior experience with API testing.
After checking out multiple frameworks and tools, it seems they all focus on (de)serializing to/from objects, and validate the values of those objects.
However, this seems like a lot of code for writing simple tests. I have found it much easier to compare the actual response JSON to an expected JSON (via deepEquals) without converting them to objects first.
Can someone offer some insights in the advantages of deserialization? (Or why using literal compares might not be optimal?) I don't quite see the use of having a class for every endpoint if I already now the exact JSON to expect.