formatter: results with of=recjson in json format fix

(addresses #1908)

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>