fix test build with JSON serializer.