summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown
index 5180617..1573322 100644
--- a/README.markdown
+++ b/README.markdown
@@ -48,7 +48,7 @@ and do one or more of the following:
1. Parse a JSON string into its Abstract Syntax Tree (AST) representation
```scala
val source = """{ "some": "JSON source" }"""
-val jsonAst = source.asJson // or JsonParser(source)
+val jsonAst = source.parseJson // or JsonParser(source)
```
2. Print a JSON AST back to a String using either the `CompactPrinter` or the `PrettyPrinter`