Modifies testpost to check for valid JSON and that key objects exist. We will need to add more extensive checking as we go.