Browse files

Replace the old JavaScript query server JSON library with json2.js

This change makes us interoperate better with other JSON implementations. It also means we can use the native JSON handlers in JavaScript runtimes that support them. Should be faster right away on new Spidermonkeys.

There are some potential breaking changes for apps that depend on Couch blowing up on 'undefined'. json2.js serialized undefined as 'null' instead of crashing.

This change will also affect people using E4X, as you can't just return an XML object and have it serialized to a string for you. Calling .toXMLString() on these is all you need to do.

git-svn-id: 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 5a87b85 commit 8d3b7ab31c1289e1425d1f4f348b7ca0021ab7fe @jchris jchris committed Jan 26, 2010
@@ -13,6 +13,7 @@
JS_FILE = server/main.js
+ server/json2.js \
server/filter.js \
server/mimeparse.js \
server/render.js \
Oops, something went wrong.

0 comments on commit 8d3b7ab

Please sign in to comment.