Skip to content

Commit 5af627a

Browse files
committed
Restore the runnable example in STON class>>#toJsonString:
1 parent f6e2ddd commit 5af627a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

repository/STON-Core.package/STON.class/class/toJsonString..st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ toJsonString: object
33
"Return a String with the JSON serialization of object.
44
Note that the object graph can only contain lists (Array) and maps (Dictionary)"
55

6-
"STON toJsonString: { { #foo->1 } asDictionary. { #bar->2 } asDictionary }"
6+
"(STON toJsonString: { { #foo->1 } asDictionary. { #bar->2 } asDictionary }) >>> '[{""foo"":1},{""bar"":2}]'"
77

88
^ String streamContents: [ :stream |
99
self put: object asJsonOnStream: stream ]

0 commit comments

Comments
 (0)