Product DocumentationDeveloper GuidesODSL LanguageFunctionsAll FunctionsjsonOn this pagejsonConverts the input variable of any type to a JSON formatted stringSyntaxstring = json(var)Exampleobj = Object()obj.name = "John"obj.age = 43print json(obj)Displays> { "_id": "obj", "age": "43", "name": "John"}