diff --git a/README.md b/README.md index 605850c..9cb6bd9 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,6 @@ Usage in a Build Flow DSL: ```groovy def parser = extension."build-flow-json-parser-extension" -def lunch = parser.parseTest("{\"food\": [{\"name": \"pb and j\", \"ingredients\": [\"bread\", \"peanut butter\", \"jelly\"]}]}") -out.println(lunch.food.name) //=> pb and j -``` \ No newline at end of file +def lunch = parser.parseText("{\"food\": [{\"name\": \"pb and j\", \"ingredients\": [\"bread\", \"peanut butter\", \"jelly\"]}]}") +out.println(lunch.food.name) //=> [pb and j] +```