home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 572146221

This data as json

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
Powered by Datasette · Queries took 0.778ms · About: xarray-datasette