var obj={
a:1,
b:{
b1:2,
b2:3
},
c:{
c1:4,
c2:{
c21:5,
c21:6
}
}
};
//
//return json={a:1,b.b1:2,b.b2:3,c.c1:4,c.c2.c21:5,c.c2.c22:6};
which god knows how to integrate this kind of data structure, it should be recursive, but how does that key value come out? do me a favor. Now I want to write a method that can be flattened when encountering this kind of data structure.