```
var jsonresponse = JSON.parse(http.responseText)
var uh = jsonresponse["json"]["data"]["modhash"] // store this user mod hash to pass to later api methods that require you to be logged in
```

example response from login endpoint:
```
{
  "json":  {
    "errors":  [],
    "data":  {
      "modhash": "xldj37uac--------------------------------------------------------------------",
      "cookie": "18020948,2013-02-25T10:20:44,e36dcc-----------------------------------------------"
    }
  }
}
```