export const isJsonString = (string: string) => { try { JSON.parse(string); } catch (e) { return false; } return true; };