/[Apache-SVN]
ViewVC logotype

Revision 903023


Jump to revision: Previous Next
Author: jchris
Date: Tue Jan 26 00:11:59 2010 UTC (14 years, 3 months ago)
Changed paths: 7
Log Message:
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.

Changed paths

Path Details
Directorycouchdb/trunk/share/Makefile.am modified , text changed
Directorycouchdb/trunk/share/server/json2.js
(Copied from couchdb/trunk/share/www/script/json2.js, r902422)
added , text changed
Directorycouchdb/trunk/share/server/util.js modified , text changed
Directorycouchdb/trunk/share/www/script/json2.js modified , text changed
Directorycouchdb/trunk/share/www/script/test/show_documents.js modified , text changed
Directorycouchdb/trunk/share/www/script/test/update_documents.js modified , text changed
Directorycouchdb/trunk/share/www/script/test/view_errors.js modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26