fix up json and rst