I'm trying to use a variable inside my getJSON function. How can I pass it in? This is what I've tried.

```
function getComments(parent_id) {
    if(typeof(parent_id)==='undefined') parent_id = -1;
    console.log("parent_id type: " + typeof(parent_id)); // parent_id type: number 
    var message = { parentMessageID: parent_id };
    $.getJSON(UPDATECOMMENTCALL, message, function(data, parent_id) {
        console.log("JSON parent_id: " + typeof(parent_id)); // JSON parent_id: string
    }
}

```

Instead of parent\_id being -1 inside the function, it's a string with value "success". How can I pass it in properly?