Box API response header changes impact
AnsweredCurrently, 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.
-
Official comment
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
Comment actions
Please sign in to leave a comment.
Comments
1 comment