I have the following string generated by an external software:
{'certificate_findings':
[('good', 'Application is signed with a code signing certificate'),
('warning', 'Application is signed with v1 signature scheme, making it vulnerable to Janus vulnerability on Android <7.0'),
('warning', 'Application is signed with SHA1withRSA. SHA1 hash algorithm is known to have collision issues. The manifest file indicates SHA256withRSA is in use.')]}
I’d like to read it as a JSON in NodeJS. I see two approaches:
First, find a library that can parse this string format into JSON, which I have not found.
Second, transform the string into something like:
{'certificate_findings':
[{'good': 'Application is signed with a code signing certificate'},
{'warning': 'Application is signed with v1 signature scheme, making it vulnerable to Janus vulnerability on Android <7.0'},
{'warning': 'Application is signed with SHA1withRSA. SHA1 hash algorithm is known to have collision issues. The manifest file indicates SHA256withRSA is in use.'}]}
How can i do it?