let a max num of json objects be set