use json & base64 in decode