We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6e2ddd commit 5af627aCopy full SHA for 5af627a
repository/STON-Core.package/STON.class/class/toJsonString..st
@@ -3,7 +3,7 @@ toJsonString: object
3
"Return a String with the JSON serialization of object.
4
Note that the object graph can only contain lists (Array) and maps (Dictionary)"
5
6
- "STON toJsonString: { { #foo->1 } asDictionary. { #bar->2 } asDictionary }"
+ "(STON toJsonString: { { #foo->1 } asDictionary. { #bar->2 } asDictionary }) >>> '[{""foo"":1},{""bar"":2}]'"
7
8
^ String streamContents: [ :stream |
9
self put: object asJsonOnStream: stream ]
0 commit comments