Make ScriptableDocument support JSON.stringify.