README.md in jsup-0.1.0 vs README.md in jsup-0.1.1
- old
+ new
@@ -76,9 +76,21 @@
"street": "13 march",
"city": "Sofia"
}
}
```
+If you want to extract from a hash it is also possible:
+```ruby
+Jsup.produce do |j|
+ j.fetch({first: 'my', last: 'initial'}, :first, :last)
+end
+```
+```json
+{
+ "first": "my",
+ "last": "initial"
+}
+```
## Benchmarking
For rather simple data structures jsup is way faster than jbuilder:
```ruby
def jb