Replace with(JSONToken.Kind) with with(JSONToken) to avoid confusing use of "string".