removed proto.each, added proto.toJSON, removed object.toJSON