We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Dan L.10
11 years agoNew member | Level 1
API v2 feedback: files' ".tag" attribute extremely unfriendly for HTTP/JSON
I'm using v2 of the HTTP API and wanted to pass along some feedback.
When I hit a files list from an endpoint like files/list_folder, I get a JSON response like this:
{ entries: [ { '.tag': ...
Steve M.
Dropbox Staff
11 years agoThanks for the feedback! I think you're specifically talking about JavaScript, right?
The dot wasn't meant to indicate that the field is private–clients definitely need to read it. It was meant to be in a namespace that would never cause collisions. A dot seemed like a good way to do that, since it's uncommonly used in a JSON dictionary key.
It's unfortunately too late to change this for API v2, which just recently came out of beta. But we could consider changing it in a future version of the API. I'd love to hear specific examples ofwhere this causes trouble, e.g. in lodash.
This seems to work fine:
var files = _.filter(entries, '.tag', 'file');
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!