I'm setting a cookie in Flask like follows :
response.set_cookie('notice', value = json.dumps(someObject), max_age=None)
If i print json.dumps(someObject) on the server I get :
{"message": "hello", "type": "success"}
On the client side it becomes :
"{\"message\": \"hello\"\054 \"type\": \"success\"}"
I want to decode it on a javascript client what format is it exactly ?
I'd like to decode it and pass it to angular.fromJson(), it looks like there is at least unescaping (of the the \") to do, but I'm surprize to see \054 (the octal ASCII code for the comma)