Adding json support to simple api for multiple generate preview requests.