stack.pop();
return vf.constructor(JSON_ivalue, v);
}
}
}
IMapWriter w = vf.mapWriter();
for (Object k: map.keySet()) {
w.put(vf.string((String) k), convertToIValue(map.get(k)));
}
return vf.constructor(JSON_object, w.done());
}
if (obj instanceof List) {
IListWriter w = vf.listWriter();
for (Object k: (List)obj) {
w.append(convertToIValue(k));
}
return vf.constructor(JSON_array, w.done());
}
if (obj instanceof Double) {
return vf.constructor(JSON_null);
}