Fix malformed json in shared_queries key in _links