mathiasbynens/jsesc — pull request #12 by jhubble (2013-08-02 10:43:45+00:00)
Title: Allow changing wrap and quotes options when using json option

json option implies wrap and double quotes in addition to changing some escaping behavior. This change allows the quote and wrap options to be changed while still allowing json option to be used. This is especially useful when you need to escape a string that is embedded in a JSON field.