A module that exposes a single function for formatting an array of CanvasNative line objects as JSON
(require("formatters/json"))(nativeLines) → {string}
Format an array of CanvasNative lines as a JSON-serializable object.
Parameters
Name | Type | Description |
---|---|---|
nativeLines |
Array.<Type> | The CanvasNative lines |
Returns
The JSON object representing the document
- Type
- string