add json base64 encoding support