Write Documents to Disk in JSON Format
To write documents to disk in JSON format, configure a JsonWriter
processing task by setting the Pre
, Post
, Update
, or Delete
configuration parameter.
To configure the task with default settings, specify the file name for the output file:
[ImportTasks] Pre0=JsonWriter:pre.jsn Post0=JsonWriter:post.jsn
Alternatively, set the parameter to JsonWriter
, followed by a colon (:
), followed by the name of the section in the configuration file that contains custom settings for the task. For example:
[ImportTasks] Post0=JsonWriter:PostJsonWriting [PostJsonWriting] JsonWriterFilename=post.jsn JsonWriterMaxSizeKBs=1000 JsonWriterArchiveDirectory=./JSONarchive
For information about the parameters that you can use to configure this task, refer to the Connector Framework Server Reference.