-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Json expression functions #8887
Conversation
Renamed the new aliases to be consistent with postgres: |
I can't remember for sure but I think I added json_to_map et cie during this development cycle. I don't mind seeing those aliases go away to keep only from_json / to_json. |
|
Wow, time passes by so fast. |
Assigned to @nirvn as the author of the function ;P |
@m-kuhn , all good stuff, merged 😄 |
Thanks @nirvn ! |
The current JSON expression functions only work with maps. There is no reason for that.
This PR adjusts the current functions so they also work with arrays, raw string values and whatever QJson may support.
There are also 2 aliases
json_to_map
is now also available asfrom_json
andmap_to_json
is now also available asto_json
.I'm not a huge fan of the names, suggestions welcome.