toJSON
Returns the sheet in the same plain-object shape as toObject, for passing to
JSON.stringify.
API Reference
Signature
Parameters
Returns
A new plain object with keys ascending and rows copied, suitable for
JSON.stringify. A row undefined serializes to null per native rules.
Throws
Does not throw.
Agent Contract
Agent Notes
- For a string, call
JSON.stringify(Sheet.toJSON(sheet)); the package has noSheet.toString/Sheet.valueOf. - The returned shape matches toObject.