Hey,
While working on the serialization and deserialization code for Ask (which is now finally done - yay!), I figured we'd have use for the same interfaces, exceptions and basic utilities almost everywhere we do this kind of work. After bouncing of the idea to put this into its own component of some people, I went ahead with this. The new component is named Serialization (we failed to come up with a better name) and is now in a WMF git repo.
You can browse the code at https://github.com/wikimedia/mediawiki-extensions-Serialization
For now, the only direct dependency on this component is the Ask library. It'll need to be included for deployment as soon as we deploy the WikibaseQuery extension. Or as soon as we decide to load Ask for some other reason.
Cheers
-- Jeroen De Dauw http://www.bn2vs.com Don't panic. Don't be evil. ~=[,,_,,]:3 --
wikidata-tech@lists.wikimedia.org