rename extract method to toJSON