Question: Is there a way to return JSON without a corresponding EDN definition?
ejstembler opened this issue · 3 comments
ejstembler commented
I have a Postgres function which returns nested JSON. Is there a way to return the JSON without a corresponding EDN definition?
hlship commented
Yes, you can define a scalar type that is a JSON object.
ejstembler commented
@hlship Thanks for the reply! That sounds encourging.
Though, admittendly I have no clue what is needed to get it to work. Do you have a link to documention which can point me in the right direction? Or, some small snippet of example code?
I tried looking at the scalar_tests.clj unit tests, however, I didn't see anything JSON-related there...
hlship commented
This should go into an FAQ as it has come up before. I'll see about adding docs and/or test to demonstrate.