Ok, then I don't know, sorry. The problem is that we don't do the serialization to json, it is performed by wcf. I'm a bit surprised that the setting to make WCF serialize to json is ignored and it serializes to xml regardless...
For clarity: our framework can serialize to binary and xml, and implements the interfaces for that. So if the calling framework (e.g. wcf) wants to serialize the data, and it serializes the entities using an xmlserializer, then that's what's done. I don't know why it serializes things to xml while you've specified it should serialize to json, but it's not something we can do much about, as we don't serialize the data to json, wcf does. serializing to json is therefore using either binary serialization -> json, or xml -> json.