From 5af627adb6ef3962cf689cd15cff0369e4433d28 Mon Sep 17 00:00:00 2001 From: Sven Van Caekenberghe Date: Thu, 16 Mar 2023 14:06:14 +0100 Subject: [PATCH] Restore the runnable example in STON class>>#toJsonString: --- repository/STON-Core.package/STON.class/class/toJsonString..st | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/STON-Core.package/STON.class/class/toJsonString..st b/repository/STON-Core.package/STON.class/class/toJsonString..st index 719e915..21f09d8 100644 --- a/repository/STON-Core.package/STON.class/class/toJsonString..st +++ b/repository/STON-Core.package/STON.class/class/toJsonString..st @@ -3,7 +3,7 @@ toJsonString: object "Return a String with the JSON serialization of object. Note that the object graph can only contain lists (Array) and maps (Dictionary)" - "STON toJsonString: { { #foo->1 } asDictionary. { #bar->2 } asDictionary }" + "(STON toJsonString: { { #foo->1 } asDictionary. { #bar->2 } asDictionary }) >>> '[{""foo"":1},{""bar"":2}]'" ^ String streamContents: [ :stream | self put: object asJsonOnStream: stream ] \ No newline at end of file