Fix dropdown toJSON to use props.

Test Plan: made sure the json was correct for a variety of
settings.

Auditors: alpert