[jQuery] can't create objects inside getJSON

[jQuery] can't create objects inside getJSON


why doesn't this work?
$.getJSON("http://domain.com/data", function (data){
function Place(){}
var state = new Place();
state.select = $("#id_state");
state.div = $("div_id_state");
state.children = $("#id_region,#id_destination");
// do stuff with data here
}