Deep serialization of nested-resource(s)

If a resource contains other resources they will be serialized to. This gives greater control of the JSON data representation.

Nested resource should not contain resourceName as that will mess up the structure.