JSON (JavaScript Object Notation) Writer Parameters
Write Feature Type Key
Specifies
the JSON object key that contains the feature type of the FME
feature produced from the object. If no value is provided, json_featuretype
is used.
Write Geometry
Specifies
the JSON object key that contains the geometry of the FME feature
produced from the object. If no value is provided, json_geometry
is used.
Specifies the geometry format that the reader should use when converting the value of Geometry Key Name into FME geometry. If no value is provided, GeoJSON is used.
Write Coordinate System
Specifies the JSON object key that contains the coordinate system. The default value is json_ogc_wkt_crs
.
Specifies the coordinate system format. The default selection, OGC-WKT, writes the entire coordinate system definition. Choosing Name Only writes only the FME coordinate system name.
Writer Parameters
The character set encoding in which the GeoJSON text will be written. If no character set is specified, the GeoJSON text is written in the UTF-8 character set.
Specifies if the JSON writer should preface the JSON text with a byte order marker to indicate the endianness of the Unicode text. The default value is No.
Formatting Parameters
The formatting of the output JSON file.
Linear: The entire JSON document is output on one line. This option produces the smallest possible JSON files.
Pretty Print: The JSON document will contain additional whitespace characters, making it much more human-readable.
This parameter controls the indentation style in the JSON document, and is enabled when Formatting Type is Pretty Print. The indentation style can use either tab characters, or a variable number of space characters.
The writer will use the value of this parameter to limit the number of decimal digits printed for each coordinate.
Valid values range from 1 to 15. The default value is 10, which gives sub-millimeter accuracy when writing WGS84 coordinates. A lower number of digits can dramatically reduce the size of the output file when writing out a large number of coordinates.
This parameter has no effect on attribute values that contain floating point numbers.
JSONP
Specifies the JSONP Javascript function name to wrap the JSON file with. JSONP (JSON with Padding) is developed as a standard for grabbing JSON from external domains, and can be used with AJAX calls.
If no value is set, the writer outputs a JSON file without JSONP.