README.md in snfoil-controller-1.0.0 vs README.md in snfoil-controller-1.0.1
- old
+ new
@@ -516,9 +516,39 @@
<td>false</td>
</tr>
</tbody>
</table>
+### JSON Deserializer
+
+##### Attrbute - Namespace
+
+The JSON Deserializer has attribute namespacing that isn't available in JSONAPI due to its structured nature.
+
+- `namespace` an array of the nested keys needed to access a value
+
+This works with both `attribute` and `attributes`.
+
+
+```ruby
+attribute :rank, namespace: [:military_information]
+```
+
+Which would pull a nested field like in the following example.
+
+```json
+{
+ "name":"John",
+ ...
+ "military-info": {
+ "branch":"Army",
+ "rank":"Private First Class"
+ }
+ ...
+}
+```
+
+
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).