- 1 Paste the map
An object whose values are strings is detected as JSON Map. Nested objects under each key are treated as cookie fields with the key as
name. - 2 Convert to JSON Array
Read the warnings. Every string value becomes a session cookie on
localhost. Edit domains in the output before Import. - 3 Import only after domains are real
CookieMan will write whatever domain is in the JSON. Leaving
localhostis the usual reason an import “works” and the site still shows logged out.
Defaults applied to every map entry
| Field | JSON Map source | After parse |
|---|---|---|
name / value | object key / string value | Preserved |
domain | none | localhost + warning |
path | none | / |
secure / httpOnly | none | false |
sameSite | none | unspecified |
session | none | true |
hostOnly | none | true |
Cookie "session_id" from map has no domain, defaulted to localhost. That is not a crash. Ignoring it writes useless cookies. See missing domain → localhost. When map values are objects
If a value is an object, it is passed through the JSON object normaliser with the key as name. Then domain, path and flags inside that object are honoured. A map of full cookie objects is therefore richer than a map of strings — but at that point you should have used a JSON array.
{
"session_id": "abc123",
"theme": "dark"
}
# warns twice, both domains localhost
{
"session_id": { "value": "abc123", "domain": ".example.com", "secure": true }
}
# one cookie, domain kept