add support for json and jsbeautify