Setting JSON style cookie

I am unable to set JSON style cookies with either setCookie or by executing javascript. Does WPT support JSON style cookies?

This has not worked:

setCookie mycookie={“mycookie”:true}

Neither has this:

execAndWait document.cookie=‘mycookie={“mycookie”:true};;path=/;’;

Is there a bug or am I doing something wrong? I need to be able to set this cookie with several json nodes.

Which browser have you tried with? They all use different methods and there may be a bug or issue with one of them.

I have tried IE9, Chrome and Firefox. Can you tell me what syntax I should be using?