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-572293244,https://api.github.com/repos/pydata/xarray/issues/2656,572293244,MDEyOklzc3VlQ29tbWVudDU3MjI5MzI0NA==,7799184,2020-01-08T22:42:01Z,2020-01-08T22:43:25Z,CONTRIBUTOR,Pandas has an option `date_format` in [to_json](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_json.html) to serialize it either as iso8601 or epoch. The `encode_times` option to `to_dict` could also be useful...,"{""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-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-572054942,https://api.github.com/repos/pydata/xarray/issues/2656,572054942,MDEyOklzc3VlQ29tbWVudDU3MjA1NDk0Mg==,7799184,2020-01-08T13:36:41Z,2020-01-08T13:36:41Z,CONTRIBUTOR,Would it make sense having `to_json` / `from_json` methods that would take care of datetime serialisation?,"{""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-462912011,https://api.github.com/repos/pydata/xarray/issues/2656,462912011,MDEyOklzc3VlQ29tbWVudDQ2MjkxMjAxMQ==,2443309,2019-02-12T20:01:07Z,2019-02-12T20:01:07Z,MEMBER,It would be good to figure out if either of these are used. It's not too late to update your implementation. ,"{""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-462902513,https://api.github.com/repos/pydata/xarray/issues/2656,462902513,MDEyOklzc3VlQ29tbWVudDQ2MjkwMjUxMw==,1197350,2019-02-12T19:35:08Z,2019-02-12T19:35:08Z,MEMBER,"Since my PR was merged, I have discovered two different JSON representations of netcdf
- https://binary-array-ld.github.io/netcdf-ld/
- http://cf-json.org/specification
Oops!","{""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-454179986,https://api.github.com/repos/pydata/xarray/issues/2656,454179986,MDEyOklzc3VlQ29tbWVudDQ1NDE3OTk4Ng==,221526,2019-01-14T22:07:19Z,2019-01-14T22:07:19Z,CONTRIBUTOR,"I'm not aware of any standard out there for JSON representation of netCDF, but I know it's been at least (briefly) discussed. @WardF, anything out there you're aware of?
Another spelling of this could be `ds.to_dict(header_only=True)`, which I only suggest to mirror `ncdump -h`.","{""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-451777071,https://api.github.com/repos/pydata/xarray/issues/2656,451777071,MDEyOklzc3VlQ29tbWVudDQ1MTc3NzA3MQ==,2443309,2019-01-06T21:35:50Z,2019-01-06T21:35:50Z,MEMBER,"Just to say, I really like this idea. I think I prefer the `ds.to_dict` syntax but feel like we could also work on making `ds.info()` more useful through some relatively simple changes.","{""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-451771761,https://api.github.com/repos/pydata/xarray/issues/2656,451771761,MDEyOklzc3VlQ29tbWVudDQ1MTc3MTc2MQ==,1197350,2019-01-06T20:24:48Z,2019-01-06T20:24:48Z,MEMBER,"I will ping @dopplershift of Unidata, my go-to for all things netCDF. 😉 Ryan, do you know of any work on this area? The best I could google is [this thread](https://www.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/2016/msg00288.html) from the netcdf mailing list.","{""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