Added support for json.