Converts a value to JSON data a layer writes, tagging what JSON cannot hold, such as { "$persist": "Date", "value": "2026-11-04T09:30:00.000Z" }. JSON data without $persist properties is written unchanged, so documents
written before tags existed read the same. As in JSON, object properties set to undefined are left out.
Converts a value to JSON data a layer writes, tagging what JSON cannot hold, such as
{ "$persist": "Date", "value": "2026-11-04T09:30:00.000Z" }. JSON data without$persistproperties is written unchanged, so documents written before tags existed read the same. As in JSON, object properties set toundefinedare left out.