[keyserver] Parse JSON columns returned from MariaDB
Summary:
One difference between MySQL and MariaDB is that MySQL has a JSON column type and MariaDB doesn't.
When using MySQL, the mysql2 npm library that we use would detect the column types and if the column has type JSON, it would automatically JSON.parse the result before returning.
This isn't possible with MariaDB, so we have to manually run JSON.parse in our keyserver code.
More details in the Linear issue.
Depends on D4520
Test Plan: I ran the web application and clicked around a bunch. Full test plan will come later
Reviewers: jonringer-comm, atul, palys-swm
Reviewed By: atul
Subscribers: Adrian, yayabosh
Differential Revision: https://phab.comm.dev/D4521