Convert JSLint directive to JSON string