https://bugzilla.wikimedia.org/show_bug.cgi?id=28099

           Summary: Add toJSON javascript module in core
           Product: MediaWiki
           Version: 1.18-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Javascript
        AssignedTo: krinklem...@gmail.com
        ReportedBy: krinklem...@gmail.com
                CC: d...@ucsc.edu, tpars...@wikimedia.org


There are several implementations out there.

The "most popular" one (recommended by John Resig from jQuery and promoted on
http://www.json.org/ ) is D. Crockgord's implementation:
https://github.com/douglascrockford/JSON-js
The main script is at [1].

Thanks to janpaul123 for the idea to add this to core. This will make it very
easy to send a nested object of information to core and also maintain types
(ie. boolean and numbers). Both of which are hard when posting them directly as
parameters in the request.


It should be defined as extending the jQuery root object (not a prototype) as
$.toJSON

--
Krinkle


[1] https://github.com/douglascrockford/JSON-js/blob/master/json2.js

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to