static Map jsonDecodeMap(S s) { O o = jsonDecode(s); if (o instanceof L && empty((L) o)) ret new HashMap; if (o instanceof Map) ret (Map) o; else throw fail("Not a JSON map: " + s); }