diff options
author | Mathias <mathias@spray.cc> | 2012-01-17 17:22:43 +0100 |
---|---|---|
committer | Mathias <mathias@spray.cc> | 2012-01-19 17:43:33 +0100 |
commit | cfbc301ecaaac325d3a1ad87305107d2cc785b7d (patch) | |
tree | e6ad4b88b94d6d6538835d76a0801425d6d164f7 /README.markdown | |
parent | ae6bfb608e007f7d652383e618b9c6af7b726fc7 (diff) | |
download | spray-json-cfbc301ecaaac325d3a1ad87305107d2cc785b7d.tar.gz spray-json-cfbc301ecaaac325d3a1ad87305107d2cc785b7d.tar.bz2 spray-json-cfbc301ecaaac325d3a1ad87305107d2cc785b7d.zip |
Pimp Strings with 'asJson'
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` |