summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorJohannes Rudolph <johannes.rudolph@gmail.com>2014-03-12 14:35:24 +0100
committerJohannes Rudolph <johannes.rudolph@gmail.com>2014-03-12 14:36:48 +0100
commitdf6863a973b1a2ded68e07eddbb9a2baa8daf169 (patch)
treee0a99df5e9b7015e924e50f4c7c13550727e476d /README.markdown
parent43d37d7cc08bb25957e6692baae0856ca1f522d4 (diff)
downloadspray-json-df6863a973b1a2ded68e07eddbb9a2baa8daf169.tar.gz
spray-json-df6863a973b1a2ded68e07eddbb9a2baa8daf169.tar.bz2
spray-json-df6863a973b1a2ded68e07eddbb9a2baa8daf169.zip
rename asJson => parseJson, fixes #89
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`