added support for json format