Using the JSON structure to the Java response headers