No title

Anonymous Coward 2015-03-07 22:00:36.91214 UTC

1> o1 = {a:1,b:2};
2Object {a: 1, b: 2}
3> o2 = {c:3,d:4};
4Object {c: 3, d: 4}
5> o3 = {e:5,f:6};
6Object {e: 5, f: 6}
7> s1 = JSON.stringify(o1);
8"{"a":1,"b":2}"
9> s2 = JSON.stringify(o2);
10"{"c":3,"d":4}"
11> s3 = JSON.stringify(o3);
12"{"e":5,"f":6}"
13> a1 = [o1, o2, o3];
14[Object, Object, Object]
15> a2 = [s1, s2, s3];
16["{"a":1,"b":2}", "{"c":3,"d":4}", "{"e":5,"f":6}"]
17> JSON.stringify(a1);
18"[{"a":1,"b":2},{"c":3,"d":4},{"e":5,"f":6}]"
19> JSON.stringify(a2);
20"["{\"a\":1,\"b\":2}","{\"c\":3,\"d\":4}","{\"e\":5,\"f\":6}"]"