toJson
Serialize all top-level sections to a JSON string. Internally calls
toDict() and wraps the result in JSON.stringify(). Use this
to persist a prompt for later restoration via
PomBuilder.fromSections().
Returns
string — JSON-serialized array of section data.