Bugfix + Refactoring: Serialize embedded ressource to empty array if items are null or empty (#7)
Bugfix + Refactoring: Serialize embedded ressource to empty array if items are null or empty (#7)

* Bugfix: Serialize embedded ressource to empty array if items are null or empty

Without this fix, a runtime error occurs in the situation: Token PropertyName in state Property would result in an invalid JSON object. Path '_embedded'.

* Refactoring: Code simplification by ensuring embeddedResource.Resources is not null
daxnet/hal