-
Notifications
You must be signed in to change notification settings - Fork 7
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
Custom JSON serialization with Ion-Jackson possible, for interop with languages that don't have Ion SDK's? #119
Comments
HI! Thanks for the question and sorry for the delay in a response. There isn't something built-in currently. Options are:
|
I should also add, to get the data classes to work with Jackson, it would be necessary to add a command-line option |
Ah awesome, looks like it's fairly straightforward to do custom codegen via templates! Thanks, when I get some free time I'll play around with this and see if I can get it to spit out a wire-friendly JSON representation for sending to other services/languages 👌 I've been meaning to do a blogpost on building a query expression language + IR-translator with PartiQL anyways |
Taking the example of the Calculator AST from the docs, serializing a simple
plus(3, 5)
expression as JSON:You get:
For languages that don't have an Ion SDK, the object
["binary",["plus"],["lit",3],["lit",5]]
isn't very easily constructed or comprehended.Is there any way to define or write custom (de)serializers to allow serializing it as something like:
Thank you =)
The text was updated successfully, but these errors were encountered: