Update json_encode.js

you may convert the object into two separate functions: json_decode and json_encode
it was tested and have built in debugger for json_decode, cross-browser compatible