to_json
The to_json
method returns a string containing the document in JSON format.
Syntax
to_json()
Returns
(String). Returns the document as a string.
The to_json
method returns a string containing the document in JSON format.
to_json()
(String). Returns the document as a string.