import json

d = """{u'card_data': [u'reader: BE\\nname: Omari\\nfirstName: Farhad\\nmiddleName: \\nnationality: R\\xe9fugi\\xe9\\nplaceOfBirth: Se Matam\\ndateOfBirth: 1995-12-31\\ngender: MALE\\nnationalNumber: 95000062908\\ncardNumber: B173197742\\nchipNumber: 534C494E33660013930D238581191F4B\\ncardDeliveryMunicipality: Ch\\xe2telet\\nnobleCondition: \\ndocumentType: 12\\nspecialStatus: NO_STATUS\\nduplicate: 00\\nspecialOrganisation: UNSPECIFIED\\ncardValidityDateBegin: 2014-01-17\\ncardValidityDateEnd: 2019-01-17\\nstreetAndNumber: null\\nzip: null\\nmunicipality: null\\nphoto: /9j/4AAQSkZJRgABAgEBLAEsAAD/2wBDABALDA4MChAODQ4SERATGCcZGBYWGDAiJBwnOTI8OzgyNzY/R1pMP0NVRDY3TmtPVV1gZWZlPUtvd25idlpjZWH/wAALCADIAIwBAREA/8QA0gAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoLEAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/2gAIAQEAAD8A9AooooopKKWkpaKKKKKKKKKKKY8saMFZwCegNVrvU7WzyJXyR1C8msO/8TOY2W1AUnox6gVhjxBfpOGFxISPU5FbNl4qIicXA3v/AAnAA/SoB4ruEkZ32tHn5V2gVatfGCOyie22gnG5W/pW7DqVnOBsuEBP8LHB/WrVLRRRRRRRUNzOsMLsXRWA43HHNcRe6nO8hPms7Y4YEjFZ0k7mPJbJzyc8mqsk7A/KaZ5qk/N1NPOCnHAUfnTck8c9Kco5BDYx71IZSpGCfwrqdD16SJFhuld1LcSE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