3

Is there a way to tell Oracle to return rows from a query in the form of a JSON string?

For example,

select 11,'abc' from dual;

would return

[11,"abc"]

1 Answer 1

4

There's no simple function, no. There is PL/JSON at Sourceforge. Also, this ORA-0001 blog post demonstrates a method using XML (way down the page).

Sign up to request clarification or add additional context in comments.

1 Comment

The ORA-0001 method looks like it does just the right thing. Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.