gqtp: fix the condtion to check if body is json