state must be strings, so use json stringify/parse