allows chapters to be given as JSON