adding support for json export
adding support for json export