Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
LIBBSON_LEGACY_EXTENDED_JSON(3)	    libbson    LIBBSON_LEGACY_EXTENDED_JSON(3)

libbson	can produce a non-portable Legacy Extended JSON	format.

WARNING:
	  Use of the Legacy Extended JSON format is discouraged. Prefer	Canon-
	  ical Extended	JSON or	Relaxed	Extended JSON for portability.

       MongoDB	Extended  JSON	(v2)  describes	the preferred Relaxed Extended
       JSON format and Canonical Extended Formats

       libbson's Legacy	Extended JSON format  matches  Relaxed	Extended  JSON
       with  the  following  exceptions. Notation is borrowed from MongoDB Ex-
       tended JSON (v2):
+------------------------+-----------------------------------------------------------------------------+
| Type			 | Legacy Extended JSON							       |
+------------------------+-----------------------------------------------------------------------------+
| Binary		 |									       |
|			 |	     { "$binary": "<payload>", "$type":	"<t>" }			       |
+------------------------+-----------------------------------------------------------------------------+
| Date			 |									       |
|			 |	     { "$date" : "<millis>" }					       |
+------------------------+-----------------------------------------------------------------------------+
| Regular Expression	 |									       |
|			 |	     { "$regex"	: "<regexPattern>", "$options" : "<options>" }	       |
+------------------------+-----------------------------------------------------------------------------+
| DBPointer (deprecated) |									       |
|			 |	     { "$ref" :	"<collection namespace>", "$id"	: "<ObjectId bytes>" } |
+------------------------+-----------------------------------------------------------------------------+
| Symbol (deprecated)	 |									       |
|			 |	     "<string>"							       |
+------------------------+-----------------------------------------------------------------------------+
| Double infinity	 | infinity or inf without quotes. Implementation  defined.  Produces  invalid |
|			 | JSON.								       |
+------------------------+-----------------------------------------------------------------------------+
| Double NaN		 | nan or nan(n-char-sequence).	Implementation defined.	Produces invalid JSON. |
+------------------------+-----------------------------------------------------------------------------+

AUTHOR
       MongoDB,	Inc

COPYRIGHT
       2009-present, MongoDB, Inc.

1.30.2				 Apr 12, 2025  LIBBSON_LEGACY_EXTENDED_JSON(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=libbson_legacy_extended_json&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help