basic json output support