Updated the cookie docs to use the safer JSON.{generate,parse}

cc @senny