I need to output JSON to a file and I’m struggling to get my pipeline to output what I want, and created the following as a really cut down example:
A JSON Generator containing the following (purely as an example, the real JSON is much ,more complicated): [{“title”:“”}]
A JSON Formatter that simple outputs the JSON
A File Writer that writes a file to the sldb
The JSON is meant to represent a field that has a blank value, but not a NULL value. The output from the JSON Formatter is this: [{“title”:“}]
i.e. there is only one double-quote for the value of the key. Can anyone tell me how I can get the output to be [{“title”:”"}] with two double-quotes for the value? I know this is valid JSON and some our systems output this when the DB field is blank.
Thanks