-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Add native JSON support #331
Comments
@Jakob3xD would love your thoughts! |
Is a valid feature. Should be relative simple to implement, by making the requests bodys given to the function as arg an interface and the Marshal it. |
I went through the code to understand the Issue and found This utility function seems to be used as follows. opensearch-go/opensearchutil/json_reader_integration_test.go Lines 55 to 62 in c04e36a
|
@YuyaAbo Thank you!
|
@dblock Yes, it would certainly be a useful addition if it could be automated. I will add an introduction to We will leave this issue as is for the purpose of adding functionality. |
Should this issue be closed? #341 seems to have committed a merge request to add the functionality unless I am mistaken. |
Yes, closing. |
Is your feature request related to a problem?
Ingesting a document today requires supplying it as an
IoReader
. Starting with an example in https://xeiaso.net/blog/elasticsearch:Ugh.
What solution would you like?
Automatically marshal objects to/from JSON. Starting with the canonical example from https://go.dev/blog/json I think I want something that doesn't say "IoStreams" everywhere.
Do you have any additional context?
Came from https://xeiaso.net/blog/elasticsearch
The text was updated successfully, but these errors were encountered: