Skip to content

Commit 4cc47a8

Browse files
authored
Create example.html
1 parent 01a23e1 commit 4cc47a8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

example.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<script src="./json_encode.min.js"></script>
2+
<script>
3+
var arr = new Array;
4+
arr['one'] = new Array;
5+
arr['one'][0] = 0;
6+
arr['one'][1] = 1;
7+
arr['two'] = new Array;
8+
arr['two']['one'] = 'one';
9+
arr['two']['two'] = 'two';
10+
arr['tree'] = 3;
11+
alert(json_encode(arr));
12+
console.log(json_encode(arr));
13+
</script>

0 commit comments

Comments
 (0)