|
MongoDB\BSON\PackedArray::toRelaxedExtendedJSONReturns the Relaxed Extended JSON representation of the BSON array Description
final public string MongoDB\BSON\PackedArray::toRelaxedExtendedJSON()
Converts the BSON array to its » Relaxed Extended JSON representation. The relaxed format prefers use of JSON type primitives at the expense of type fidelity and is most suited for producing output that can be easily consumed by web APIs and humans. ParametersThis function has no parameters. Return ValuesReturns a string containing the » Relaxed Extended JSON representation of the BSON array. ExamplesExample #1 MongoDB\BSON\PackedArray::toRelaxedExtendedJSON example
The above example will output: [ "foo", 123, 4294967295, { "$oid" : "56315a7c6118fd1b920270b1" } ] See Also
|