summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorJohannes Rudolph <johannes.rudolph@gmail.com>2013-10-26 19:26:33 +0200
committerJohannes Rudolph <johannes.rudolph@gmail.com>2013-10-26 19:26:33 +0200
commita0fddd6c0bfab6653b6e20566d4b859fb8458677 (patch)
tree29d4e0c7506352ff9ed27c49966424f96835921b /README.markdown
parente8d6d46b2b9d2e25cf47f8eab842465f77de13d1 (diff)
downloadspray-json-a0fddd6c0bfab6653b6e20566d4b859fb8458677.tar.gz
spray-json-a0fddd6c0bfab6653b6e20566d4b859fb8458677.tar.bz2
spray-json-a0fddd6c0bfab6653b6e20566d4b859fb8458677.zip
README: fix numbering
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown12
1 files changed, 4 insertions, 8 deletions
diff --git a/README.markdown b/README.markdown
index 697e753..60a7e7b 100644
--- a/README.markdown
+++ b/README.markdown
@@ -38,27 +38,23 @@ 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
-
+ 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)
```
-2. Print a JSON AST back to a String using either the `CompactPrinter` or the `PrettyPrinter`
-
+ 2. 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
-
+ 3. 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
-
+ 4. Convert a JSON AST to a Scala object with the `convertTo` method
```scala
val myObject = jsonAst.convertTo[MyObjectType]
```