send output as json