How to extract value from JSON with common_schema?
Posted by: As Os
Date: October 30, 2016 10:59AM

I tried this code but it's not working:

  SET @json := '  
       [
        {"value": "New", "onclick": "CreateNewDoc()"},
        {"value": "Open", "onclick": "OpenDoc()"},
        {"value": "Close", "onclick": "CloseDoc()"}
      ] 
';
SELECT common_schema.extract_json_value(@json, 'value') AS count_items;

What am I doing wrong?

Options: ReplyQuote


Subject
Views
Written By
Posted
How to extract value from JSON with common_schema?
1960
October 30, 2016 10:59AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.