document TO_JSON methods