Add json stats

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>