Populate an entity with a JSON structure packet. Make sure the names of the properties match the keys in the structure.
This function returns the populated object