We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Creates a JSON-formatted string from an iteratable object.
Return Value
A JSON-formatted string.
var data = { a: 1, b: 2, c: [3, 4, 5], d: { e: 6, f: "foo", g: [7, 8] } }; var s = from(data).toJSON(); console.log(s); /* This code produces the following output: {"a": 1, "b": 2, "c": [3, 4, 5], "d": {"e": 6, "f": "foo", "g": [7, 8]}} */