export default function asJson(s: Object | string) { return (typeof s === 'string') ? JSON.parse(s) : s; }