Skip to content

Commit

Permalink
Merge pull request #23 from musikinformatik/final-touches
Browse files Browse the repository at this point in the history
show how to escape escaping
  • Loading branch information
telephon authored Jan 23, 2023
2 parents 6a55b9c + d5671ed commit b094a80
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion HelpSource/Classes/JSONlib.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ code::
// escaping of quotes is necessary
j = "{\"hello\": 42}";
JSONlib.convertToSC(j);
// -> -> ( 'hello': 42 )
// -> ( 'hello': 42 )

// to avoid the need for escaping strings, you can also use a symbol.
// (note that you still need to escape ' if they are in your json)
j = '{"hello": 42}';
JSONlib.convertToSC(j);
// -> ( 'hello': 42 )
::

Also see link::#*new:: and the link::#examples::.
Expand Down

0 comments on commit b094a80

Please sign in to comment.