rename toJSON to toBasicObject; JSON is a serialisation format