private static Object getValue(Object value) {
        if (value instanceof String) {
            String s = (String)value;
            if (s.startsWith("\"{") && s.endsWith("}\"") || 
                s.startsWith("\"[") && s.endsWith("]\""))
                value = s.substring(1, s.length() - 1);
        }
        return value;
    }