43444546474849505152535455
Object o=map.get(key); if(o instanceof SomeObj) { json.append("{"); SomeObj so=(SomeObj)o; json.append("name: \""+so.getName()+"\", value: \""+so.getValue()+"\""); json.append("}"); } else if(o instanceof String) {