JsonWriterPublisher
org.eso.ias.dasu.publisher.JsonWriterPublisher
class JsonWriterPublisher(val writer: Writer) extends OutputPublisher
The publisher of IASValues produced by the DASU in a JSON-like format.
The JSON output is composed of records of IASV-n JSON string of the IASValues like IASV1 IASV2 IASV3
The format of a true JSON file is [ IASV1, IASV2, IASV3,...]
The ideal solution would be to let Jackson2 write the array of IASValues passing one item at a time but, browsing the net, it does not seem as easy as I expected.
Value parameters
- filePath
-
the path of the JSON file to write
Attributes
- Graph
-
- Supertypes
Members list
In this article