Skip to content

Commit

Permalink
unescape escapes
Browse files Browse the repository at this point in the history
  • Loading branch information
telephon committed Jan 23, 2023
1 parent cd06a27 commit d5671ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HelpSource/Classes/JSONlib.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ j = "{\"hello\": 42}";
JSONlib.convertToSC(j);
// -> ( 'hello': 42 )

// to avoid the need for escaping strings, you can also use a symbol:
// 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 )
Expand Down

0 comments on commit d5671ed

Please sign in to comment.