diff options
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/README.markdown b/README.markdown index fb35301..3ff1d02 100644 --- a/README.markdown +++ b/README.markdown @@ -32,8 +32,8 @@ and do one or more of the following: 1. Parse a JSON string into its Abstract Syntax Tree (AST) representation - val json = """{ "some": "JSON source" }""" - val jsonAst = JsonParser(json) + val source = """{ "some": "JSON source" }""" + val jsonAst = source.asJson // or JsonParser(source) 2. Print a JSON AST back to a String using either the `CompactPrinter` or the `PrettyPrinter` |