MCPcopy Create free account
hub / github.com/amadeus4dev/amadeus-java / isJson

Method isJson

src/main/java/com/amadeus/Response.java:166–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164
165 // Checks if the response is likely to be JSON.
166 private boolean isJson() {
167 return hasJsonHeader() && hasBody();
168 }
169
170 // Checks if the response headers include a JSON mime-type.
171 private boolean hasJsonHeader() {

Callers 1

parseJsonMethod · 0.95

Calls 2

hasJsonHeaderMethod · 0.95
hasBodyMethod · 0.95

Tested by

no test coverage detected