Add jsonEncode and base64Encode functions.