Refactoring of json deserializer to support referencing to parent on construction of child resource.