Last modified: 2011-09-12 20:50:17 UTC
Suggested is to "... use some tests to make sure that the output from Services_Json and json_{en,de}code are identical." Enhancement bug filed for an issue in the mailinglist discussion "[Wikitech-l] Re quests about log system": > - json in php requires a mess of code and potentially a 3rd party > libraries because: > -- the bulit-in json json_{en,de}code library functions may not be installed > -- the bulit-in json library in some cases actually has a bug that makes > it encode/decode json incorrectly > Well, that's why we have the FormatJson wrapper. Could use some tests to make sure that the output from Services_Json and json_{en,de}code are identical. I'm whipping up some trivial ones now. [1] http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/55429
I already wrote some initial tests in r96713. Feel free to add more if you'd like :)