Search notes:

Oracle JSON: lax vs strict format

With lax format, the following JSON document is valid. It is invalid with strict format because strict format requires names to be quoted.
{
   num: 42
}
The default format is lax.
The difference between lax and strict JSON format only plays a role when using the two predicates is json and is not json.
The following check constraint makes sure that documents are stored in the strict format:
create table tasks (
  …
  doc varchar(4000) check (doc is json (strict))
);

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759612700, '216.73.216.149', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/SQL/JSON/lax-vs-strict-format(47): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78