From b56c2b9589edfe71b43b359b4d24adf428aa2b2c Mon Sep 17 00:00:00 2001 From: otoburb Date: Tue, 5 Jul 2011 00:07:59 -0400 Subject: [PATCH] json.writer: Updated docs to mention the dynamic variable jsvar-encode? --- basis/json/writer/writer-docs.factor | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/basis/json/writer/writer-docs.factor b/basis/json/writer/writer-docs.factor index 9a6ba5f2b1..6445f0a7cb 100644 --- a/basis/json/writer/writer-docs.factor +++ b/basis/json/writer/writer-docs.factor @@ -10,7 +10,9 @@ HELP: >json HELP: json-print { $values { "obj" "an object" } } -{ $description "Serializes the object into a JSON formatted string and outputs it to the standard output stream." } +{ $description "Serializes the object into a JSON formatted string and outputs it to the standard output stream. + +By default, tuples and hashtables are serialized into Javascript-friendly JSON formatted output by converting keys containing dashes into underscores. This behaviour can be modified by setting the dynamic variable " { $strong "jsvar-encode?" } " to false." } { $see-also >json } ; ARTICLE: "json.writer" "JSON writer"