Adding JSON serializer for document store.