put output status in JSON