Jason.Fragment is very well named but lacks a bit of documentation.
It has helped me create JSON which is partly generated by Elixir, partly generated by Postgres jsonb_agg (highly optimised), and it has also been used for caching by some.
In this PR I add a bit of testing, documentation on the readme and on the module.
Thanks @michalmuskala for mentioning this on Slack today.
(feel free to modify whatever you see fit, this is just a first attempt).
Jason.Fragment
is very well named but lacks a bit of documentation.It has helped me create JSON which is partly generated by Elixir, partly generated by Postgres
jsonb_agg
(highly optimised), and it has also been used for caching by some.In this PR I add a bit of testing, documentation on the readme and on the module.
Thanks @michalmuskala for mentioning this on Slack today.
(feel free to modify whatever you see fit, this is just a first attempt).