Check attribute type

Check if a JSON attribute in the response body has a specific type.