@@ -476,6 +476,21 @@ jsonb
476476This type is similar to ``json ``. On PostgreSQL, it is mapped to the ``JSONB `` data type.
477477On all other platforms, it is mapped to the same type as ``json ``.
478478
479+ .. _json_object :
480+ json_object
481+ ^^^^^^^^^^^
482+
483+ This type is similar to ``json ``. Values retrieved from the database are also always converted
484+ to PHP's native types using PHP's ``json_decode() `` function but this time JSON objects are
485+ always converted to PHP `\stdClass `.
486+
487+ .. _jsonb_object :
488+ jsonb_object
489+ ^^^^^^^^^^^^
490+
491+ This type is similar to ``json_object ``. On PostgreSQL, it is mapped to the ``JSONB `` data type.
492+ On all other platforms, it is mapped to the same type as ``json ``.
493+
479494.. _mappingMatrix :
480495
481496Mapping Matrix
@@ -701,7 +716,7 @@ Please also notice the mapping specific footnotes for additional information.
701716 | | | **SQL Server ** | *all * | ``VARCHAR(MAX) `` |
702717 +-------------------+--------------------+--------------------------+---------+----------------------------------------------------------+
703718 | **json ** | ``mixed `` | **MySQL ** | *all * | ``JSON `` |
704- | | +--------------------------+ + |
719+ | | +--------------------------+ | |
705720 | | | **PostgreSQL ** | *all * | |
706721 | | +--------------------------+---------+----------------------------------------------------------+
707722 | | | **Oracle ** | *all * | ``CLOB `` |
@@ -720,6 +735,27 @@ Please also notice the mapping specific footnotes for additional information.
720735 | | +--------------------------+---------+----------------------------------------------------------+
721736 | | | **SQL Server ** | *all * | ``VARCHAR(MAX) `` |
722737 +-------------------+--------------------+--------------------------+---------+----------------------------------------------------------+
738+ | **json_object ** | ``mixed `` | **MySQL ** | *all * | ``JSON `` |
739+ | | +--------------------------+ | |
740+ | | | **PostgreSQL ** | *all * | |
741+ | | +--------------------------+---------+----------------------------------------------------------+
742+ | | | **Oracle ** | *all * | ``CLOB `` |
743+ | | +--------------------------+ | |
744+ | | | **SQLite ** | | |
745+ | | +--------------------------+---------+----------------------------------------------------------+
746+ | | | **SQL Server ** | *all * | ``VARCHAR(MAX) `` |
747+ +-------------------+--------------------+--------------------------+---------+----------------------------------------------------------+
748+ | **jsonb_object ** | ``mixed `` | **MySQL ** | *all * | ``JSON `` |
749+ | | +--------------------------+---------+----------------------------------------------------------+
750+ | | | **PostgreSQL ** | *all * | ``JSONB `` |
751+ | | +--------------------------+---------+----------------------------------------------------------+
752+ | | | **Oracle ** | *all * | ``CLOB `` |
753+ | | +--------------------------+ | |
754+ | | | **SQLite ** | | |
755+ | | +--------------------------+---------+----------------------------------------------------------+
756+ | | | **SQL Server ** | *all * | ``VARCHAR(MAX) `` |
757+ +-------------------+--------------------+--------------------------+---------+----------------------------------------------------------+
758+
723759
724760**Notes **
725761
0 commit comments