Extract json specific logic from GenericSerializationVisitor

Hey,

I've seen in https://github.com/schmittjoh/serializer/pull/20 that @tystr had to add more "json" knowledge inside the `GenericSerializationVisitor` class. So here's a simple fix.