added a way to set a custom json serializer - fixes #19