summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias <mathias@spray.io>2014-09-19 14:37:02 +0200
committerMathias <mathias@spray.io>2014-09-19 14:38:03 +0200
commitc4a92c096ee223e680ea1bba80c4633ed9f64344 (patch)
tree0a17fd3b0f61f1c0474327244816b39b702e7823
parent43a2319910f1c58c044aadbbb726bdc8a9f9229c (diff)
downloadspray-json-c4a92c096ee223e680ea1bba80c4633ed9f64344.tar.gz
spray-json-c4a92c096ee223e680ea1bba80c4633ed9f64344.tar.bz2
spray-json-c4a92c096ee223e680ea1bba80c4633ed9f64344.zip
Small fix in README
-rw-r--r--README.markdown8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.markdown b/README.markdown
index c10578c..ab0d036 100644
--- a/README.markdown
+++ b/README.markdown
@@ -45,26 +45,26 @@ import DefaultJsonProtocol._ // !!! IMPORTANT, else `convertTo` and `toJson` won
and do one or more of the following:
- 1. Parse a JSON string into its Abstract Syntax Tree (AST) representation
+* Parse a JSON string into its Abstract Syntax Tree (AST) representation
```scala
val source = """{ "some": "JSON source" }"""
val jsonAst = source.parseJson // or JsonParser(source)
```
- 2. Print a JSON AST back to a String using either the `CompactPrinter` or the `PrettyPrinter`
+* Print a JSON AST back to a String using either the `CompactPrinter` or the `PrettyPrinter`
```scala
val json = jsonAst.prettyPrint // or .compactPrint
```
- 3. Convert any Scala object to a JSON AST using the pimped `toJson` method
+* Convert any Scala object to a JSON AST using the pimped `toJson` method
```scala
val jsonAst = List(1, 2, 3).toJson
```
- 4. Convert a JSON AST to a Scala object with the `convertTo` method
+* Convert a JSON AST to a Scala object with the `convertTo` method
```scala
val myObject = jsonAst.convertTo[MyObjectType]