Abstracting the serializer

Abstracting the Serializer (we use json)