AFAIK there is no php involved in the dump process (python?)


There was a mail that announced a switch to the new serialisation format
in July 2014
[https://lists.wikimedia.org/pipermail/wikidata-l/2014-July/004225.html]

And some other mails adressing the JSON-Problem in Sep. 2014
[https://lists.wikimedia.org/pipermail/wikidata-tech/2014-September/000586.html]
[https://lists.wikimedia.org/pipermail/wikidata-tech/2014-September/000576.html]


Is there anything any specific point where a volunteer can help fixing
this issue? (I would love to see a consistent dump with history…)


Lukas

Am Fr 27.02.2015 um 01:06 schrieb Stas Malyshev:
> Hi!
> 
>> It's that time of the year again when I am sending a reminder that we
>> still have broken JSON in the dump files ;-). As usual, the problem is
>> that empty maps {} are serialized wrongly as empty lists []. I am not
> 
> This seems to be consequence of using json_encode(), which does
> serialize empty arrays as [], unless given JSON_FORCE_OBJECT option.
> Unfortunately, this option would make all lists into objects (maps) so
> we can't just use it directly. So probably the best way would be to just
> drop the empty property? Unless it'd break something else.
> Another trick would be to put there "new stdclass" instead of empty
> array - that would encode to {}.
> 


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Wikidata-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-l

Reply via email to