MediaWiki talk:Diff-removed

From Universalwiki

Hi Michael,Thanks for your work on this. I'm working on a js prrogam that needs json diffing, and I'm trying to work some examples. I tried the following examples to diff, and it seems like the elements that are the same are still getting returned. Do you have any insight on why this might be? All I changed was one value from lcsh to lcsh2, so that is all i would expect to see back from the diff. Thanks.json1: [[{"bb68609635":"lcsh"},{"bb17073259":"Anti-fascist movements"},{"bb04445165":"Spain"},{"bb17073259":"Posters"}],[{"bb68609635":"lcsh"},{"bb04445165":"Spain"},{"bb17073259":"History"},{"bb9147665h":"Civil War, 1936-1939"},{"bb17073259":"Propaganda"}]]json2:[[{"bb68609635":"lcsh"},{"bb17073259":"Anti-fascist movements"},{"bb04445165":"Spain"},{"bb17073259":"Posters"}],[{"bb68609635":"lcsh2"},{"bb04445165":"Spain"},{"bb17073259":"History"},{"bb9147665h":"Civil War, 1936-1939"},{"bb17073259":"Propaganda"}]]results i'm getting:{ 0 : [{"bb68609635": "lcsh"}, {"bb17073259": "Anti-fascist movements"}, {"bb04445165": "Spain"}, {"bb17073259": "Posters"}], 1 : [{"bb68609635": "lcsh2"}, {"bb04445165": "Spain"}, {"bb17073259": "History"}, {"bb9147665h": "Civil War, 1936-1939"}, {"bb17073259": "Propaganda"}]}thanks!

Personal tools