implemented entities json serialization;