html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/2656#issuecomment-572146221,https://api.github.com/repos/pydata/xarray/issues/2656,572146221,MDEyOklzc3VlQ29tbWVudDU3MjE0NjIyMQ==,1217238,2020-01-08T16:23:35Z,2020-01-08T16:23:35Z,MEMBER,"> Would it make sense having `to_json` / `from_json` methods that would take care of datetime serialisation? What's the right way to serialize datetime objects in JSON? One option would be to add an `encode_times` option to `to_dict` that creates the `units` attribute.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,396285440 https://github.com/pydata/xarray/issues/2656#issuecomment-451771539,https://api.github.com/repos/pydata/xarray/issues/2656,451771539,MDEyOklzc3VlQ29tbWVudDQ1MTc3MTUzOQ==,1217238,2019-01-06T20:21:23Z,2019-01-06T20:21:23Z,MEMBER,"I like the look of `ds.to_dict(data=False)`. I'm pretty sure this topic has come up before -- there is definitely value in having a standard way to express the schema of xarray.Dataset objects. `ds.info(format='json')` is another option, though a slightly weird feature of `ds.info()` is that it writes to a buffer rather than returning an object. This is because otherwise you get quotes for a string around the result when you type this at the command line.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,396285440