Python Flask Basics Character Builder Cookies

I need to know, if the conversion from request.form dict => Json are mandatory for setup a cookies?

I need to know, if the conversion from request.form dict => Json are mandatory for setup a cookies?