Well, this is the complete data that I want to render. When I click the (dizin):3897:30 below, it directs me to error message under source of console. Somehow {{ editablePID|escapejs }} gets the data but error occurs, I think it is because indentation or something?
Uncaught SyntaxError: missing ) after argument list (at (dizin):3897:30)
error
var obj = JSON.parse('[OrderedDict([('patientid', 'Z0FBQUFBQmpoZWllM0ZlMWkzQ1BlRklKNTNMRHhhZEZwQVhnaVE2UV9JLXdWajFHZ1BTcmpyMWxHQm1UQVFCUEFxbkJQbmZsMVJsWmRJLUpqbEU3OFRMZDBMcFZqekxWM1E9PQ=='), ('bday', '2014-06-12'), ('age', 11), ('gender', 'Male'), ('born_country', 'Spain'), ('foreigner', 'No'), ('year_arrival', '2022'), ('date_arrival', '2022-11-17'), ('residence', 'Yes'), ('postcode', '46022'), ('occupation', 'Child'), ('work_place', 'Valencia'), ('symptoms_presence', 'SP'), ('general_symp', 'GS'), ('respiratory_symp', 'RS'), ('symptoms_onset', '2022-12-01'), ('diagnostic_date', '2022-11-15'), ('treatment_start', '2022-11-15'), ('year_declaration', '2022'), ('date_declaration', '2022-11-01'), ('dto_declaration', 'DD'), ('proc_declaration', 'PD'), ('province_declaration', 'PD'), ('risk_dto', 'RD'), ('case_type', 'CT'), ('outbreak', 'O'), ('outbreak_code', 1), ('previous_contact', 'PC'), ('contact_tracing', 'CT'), ('contacts_surveyed', 1), ('contacts_infected', 1), ('home_partners', 1), ('risk_partners', 1), ('disease_localization', 'DL'), ('disease_history', 'DH'), ('mantoux', 'M'), ('sputum_smear', 'SS'), ('epi_data_culture', 'EDC'), ('chest_xray', 'CX'), ('treatment', 'T'), ('resh', 'rh'), ('resr', 'rr'), ('ress', 'rs'), ('resz', 'rz'), ('rese', 're'), ('hospitalisation', 'H'), ('hosp_admission_date', '2022-11-11'), ('hosp_discharge_date', '2022-11-16'), ('epi_data_hospitals', OrderedDict([('name', 'HOSPITAL DE LA RIBERA'), ('address', 'Ribera'), ('contact', 'ContactR'), ('phone', '111-222-555'), ('email', 'ribera@gmail.com'), ('comments', 'Comments')])), ('alcohol_abuse', 'AA'), ('diabetes', 'D'), ('neoplasia', 'N'), ('pdu', 'PDU'), ('hiv_infected', 'HIV'), ('homeless', 'H'), ('immigrant', 'I'), ('passerby', 'P'), ('healthcare_worker', 'HW'), ('imprisonment', 'IM'), ('nursing_home', 'NH'), ('dot', 'D'), ('outcome', 'O')]), OrderedDict([('patientid', 'Z0FBQUFBQmpoZXNhcktiUnBmdWRmRWdDZGc2OU90NUpaSFBHa2JoaXlldzlzeWNuSE5nN3g5NDQtemRxZ2RhRjBlenhLTXYxLVIxUnd0Mzk5eERzVHNtZVlhdjhoRklrcnc9PQ=='), ('bday', '1998-06-12'), ('age', 24), ('gender', 'Female'), ('born_country', 'Spain'), ('foreigner', 'No'), ('year_arrival', '2020'), ('date_arrival', '2020-11-12'), ('residence', 'Yes'), ('postcode', '46033'), ('occupation', 'IT'), ('work_place', 'Valencia'), ('symptoms_presence', 'SP'), ('general_symp', 'GS'), ('respiratory_symp', 'RS'), ('symptoms_onset', '2022-12-01'), ('diagnostic_date', '2022-11-23'), ('treatment_start', '2022-11-15'), ('year_declaration', '2022'), ('date_declaration', '2022-11-10'), ('dto_declaration', 'DD'), ('proc_declaration', 'PD'), ('province_declaration', 'PD'), ('risk_dto', 'RD'), ('case_type', 'CT'), ('outbreak', 'O'), ('outbreak_code', 3), ('previous_contact', 'PC'), ('contact_tracing', 'CT'), ('contacts_surveyed', 1), ('contacts_infected', 1), ('home_partners', 1), ('risk_partners', 1), ('disease_localization', 'DL'), ('disease_history', 'DH'), ('mantoux', 'M'), ('sputum_smear', 'SS'), ('epi_data_culture', 'EDC'), ('chest_xray', 'CX'), ('treatment', 'T'), ('resh', 'rh'), ('resr', 'rr'), ('ress', 'rs'), ('resz', 'rz'), ('rese', 're'), ('hospitalisation', 'H'), ('hosp_admission_date', '2022-11-17'), ('hosp_discharge_date', '2022-11-10'), ('epi_data_hospitals', OrderedDict([('name', 'HOSPITAL DE LA RIBERA'), ('address', 'Ribera'), ('contact', 'ContactR'), ('phone', '111-222-555'), ('email', 'ribera@gmail.com'), ('comments', 'Comments')])), ('alcohol_abuse', 'AA'), ('diabetes', 'D'), ('neoplasia', 'N'), ('pdu', 'PDU'), ('hiv_infected', 'HIV'), ('homeless', 'H'), ('immigrant', 'I'), ('passerby', 'P'), ('healthcare_worker', 'HW'), ('imprisonment', 'IM'), ('nursing_home', 'NH'), ('dot', 'D'), ('outcome', 'O')]), OrderedDict([('patientid', 'Z0FBQUFBQmptSWtySWMwYW9HS3FSeDN2cExjdXBqeVNjRFdmc1NXd3hGY003dnBkTGN6Y3NPc1FtY0F0YlpSWTBrUEtJRUtGSVNVVWRJTTRvcjdpNUM0a3M3NG5GbVEzTlE9PQ=='), ('bday', None), ('age', None), ('gender', ''), ('born_country', ''), ('foreigner', ''), ('year_arrival', None), ('date_arrival', None), ('residence', ''), ('postcode', ''), ('occupation', ''), ('work_place', ''), ('symptoms_presence', ''), ('general_symp', ''), ('respiratory_symp', ''), ('symptoms_onset', None), ('diagnostic_date', None), ('treatment_start', None), ('year_declaration', None), ('date_declaration', None), ('dto_declaration', ''), ('proc_declaration', ''), ('province_declaration', ''), ('risk_dto', ''), ('case_type', ''), ('outbreak', ''), ('outbreak_code', None), ('previous_contact', ''), ('contact_tracing', ''), ('contacts_surveyed', None), ('contacts_infected', None), ('home_partners', None), ('risk_partners', None), ('disease_localization', ''), ('disease_history', ''), ('mantoux', ''), ('sputum_smear', ''), ('epi_data_culture', ''), ('chest_xray', ''), ('treatment', ''), ('resh', ''), ('resr', ''), ('ress', ''), ('resz', ''), ('rese', ''), ('hospitalisation', ''), ('hosp_admission_date', None), ('hosp_discharge_date', None), ('epi_data_hospitals', OrderedDict([('name', 'HOSPITAL DE LA RIBERA'), ('address', 'Ribera'), ('contact', 'ContactR'), ('phone', '111-222-555'), ('email', 'ribera@gmail.com'), ('comments', 'Comments')])), ('alcohol_abuse', ''), ('diabetes', ''), ('neoplasia', ''), ('pdu', ''), ('hiv_infected', ''), ('homeless', ''), ('immigrant', ''), ('passerby', ''), ('healthcare_worker', ''), ('imprisonment', ''), ('nursing_home', ''), ('dot', ''), ('outcome', '')])]');