compiles pages of data from socrate into single json file