support for base64 and json