Skip to main content
Question

Box API response header changes impact

  • May 22, 2025
  • 1 reply
  • 3 views

Forum|alt.badge.img

Currently, I'm reading the field as follows (in Java) in all the applications:

JSONObject another_json_object = (JSONObject)the_json_array.get(i);
String etagID= (String) another_json_object.get("etag");


Now, how do I search for the field "etag" while ignoring the case. I'm using JSON Simple libraries.

1 reply

Forum|alt.badge.img

Hi Chirashree_Pal,

Given that code, you won't be immediately impacted by the change. Although we're stating that headers should be treated as "case insensitive" the change going out will start by lowercasing all headers. That doesn't mean that this will be how it always is going for, hence why we're recommending handling headers in a case-insensitive manner. 

I wrote up this blog post that goes through the mechanics of a sample solution. It's showing it in Node, but should give you the details needed to make the change.

- Jon