docs/root-elements.md in flexirest-1.7.8 vs docs/root-elements.md in flexirest-1.7.9
- old
+ new
@@ -6,9 +6,17 @@
class Feed < Flexirest::Base
post :list, "/feed", ignore_root: "feed"
end
```
+This also works if you'd want to remove a tree of root nodes:
+
+```ruby
+class Feed < Flexirest::Base
+ post :list, "/feed", ignore_root: ["feed", "items"]
+end
+```
+
Alternatively if you want to wrap your JSON request body in a root element, e.g.:
```json
{
"feed": {