[CDA-103]: Made Error and Success output a json result