Implement Arrayable and Jsonable interfaces on entities