prepare is now .toJSON