PostgreSQL plsql method with json argument

To get a element of json we can call with index name like this i_json::json->>’bar’
Here is a sample method with josn argument

Calling with a json will return “world” which is the value of json index bar