Разбор JSON в ORACLE DB
Сразу пример
CREATE TABLE json_documents ( id RAW(#cc66cc;">16) NOT NULL, data CLOB, CONSTRAINT json_documents_json_chk CHECK (data IS JSON) ); INSERT INTO json_documents (id, data) VALUES (SYS_GUID(), '{ "FirstName" : "John", "LastName" : "Doe", "Job" : "Clerk", "Address" : { "Street" : "99 My Street", "City" : "My City", "Country" : "UK", "Postcode" : "A12 34B" }, "ContactDetails" : { "Email" : "john.doe@example.com", "Phone" : "44 123 123456", "Twitter" : "@johndoe" }, "DateOfBirth" : "01-JAN-1980", "Active" : true }'); SELECT a.data.FirstName, a.data.LastName, FROM json_documents a;
Источники
http://qaru.site/questions/1660935/how-can-i-parse-json-string-in-plsql
http://qaru.site/questions/13241181/request-body-of-rest-call-using-utlhttp-through-oracle-12c-db-having-78000-chars