Skip to content

Commit

Permalink
Replace the old JavaScript query server JSON library with json2.js
Browse files Browse the repository at this point in the history
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: https://svn.apache.org/repos/asf/couchdb/trunk@903023 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
jchris committed Jan 26, 2010
1 parent 5a87b85 commit 8d3b7ab
Show file tree
Hide file tree
Showing 7 changed files with 507 additions and 82 deletions.
1 change: 1 addition & 0 deletions share/Makefile.am
Expand Up @@ -13,6 +13,7 @@
JS_FILE = server/main.js

JS_FILE_COMPONENTS = \
server/json2.js \
server/filter.js \
server/mimeparse.js \
server/render.js \
Expand Down

0 comments on commit 8d3b7ab

Please sign in to comment.