when using the get function, the metadata parameter to the callback isn't a object but a string.
This is because it comes from the headerfield 'x-dropbox-metadata' and that isn't evaluated by request to be a JSON object. so before you can use it you need to do JSON.parse(metadata).
when using the get function, the metadata parameter to the callback isn't a object but a string. This is because it comes from the headerfield 'x-dropbox-metadata' and that isn't evaluated by request to be a JSON object. so before you can use it you need to do JSON.parse(metadata).
For consistens this should be fixed.