tojosn -> statedict, return dict
Bounded number Textbox