MCPcopy Index your code
hub / github.com/amadeus4dev/amadeus-java / parseJson

Method parseJson

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

Source from the content-addressed store, hash-verified

156
157 // Ties to parse the response body into a JSON Object
158 private JsonObject parseJson() {
159 if (isJson()) {
160 return new JsonParser().parse(getBody()).getAsJsonObject();
161 }
162 return null;
163 }
164
165 // Checks if the response is likely to be JSON.
166 private boolean isJson() {

Callers 1

parseDataMethod · 0.95

Calls 2

isJsonMethod · 0.95
parseMethod · 0.80

Tested by

no test coverage detected