-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add quickstart section #21
Conversation
@telephon is adding an implicit conversion of Symbol to String ok? |
README.md
Outdated
@@ -31,18 +31,19 @@ HelpBrowser.openHelpFor("Classes/JSONlib"); | |||
|
|||
#### Parse a JSON | |||
|
|||
Lets parse the JSON which has an integer as a value | |||
Lets say we have a JSON with an integer as a value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets -> Let's
Tests/TestJSONlib.sc
Outdated
this.assertEquals( | ||
e[\hello], | ||
42, | ||
"JSONlib should also accept Symbols beneath Strings", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is a "symbol beneath a string"?
classes/JSONlib.sc
Outdated
@@ -17,6 +17,10 @@ JSONlib { | |||
} | |||
|
|||
*convertToSC {|string, customDecoder=nil, useEvent=true, postWarnings=true| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe rename "string" to "json" because it also may be a symbol.
No description provided.