let user set max num of json objects