Construct chunks from json objects