Re: How to extract value from JSON with common_schema?
Posted by: As Os
Date: October 31, 2016 03:51AM

I changed the code a bit:
  SET @json := '  
  {
     "list": [
        {"value": "New", "onclick": "CreateNewDoc()"},
        {"value": "Open", "onclick": "OpenDoc()"},
        {"value": "Close", "onclick": "CloseDoc()"}
      ] 
  }           
';
SELECT extract_json_value(@json, '/list/value') ;



Now I get a result, BUT I get all 3 values: 'New Open Close'.
How can I get the 2nd value? ('Open')

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: How to extract value from JSON with common_schema?
262
October 31, 2016 03:51AM


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.