Make sure qr serialization will always be in JSON

For the sake of future proofing parts of that systems that can be implemented in other languages (like the query runner), make sure that qr will only serialize complex structures using JSON instead of Pickle.