You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.
Hi, one obvious problem is the lack of support for encoding custom types... for example datetime.datetime currently fails saying its not JSON serializable.
The best way to do this would be to pass an encoder class to the json.dumps() call in send_request. I was thinking if you could supply an encoder and decoder class when you call the ESClient constructor it would give the maximum flexibility, but still keep the ESClient API simple.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, one obvious problem is the lack of support for encoding custom types... for example datetime.datetime currently fails saying its not JSON serializable.
The best way to do this would be to pass an encoder class to the json.dumps() call in send_request. I was thinking if you could supply an encoder and decoder class when you call the ESClient constructor it would give the maximum flexibility, but still keep the ESClient API simple.
The text was updated successfully, but these errors were encountered: