Remove option for toJSON on entities to make it more simple.