support wrapped json and offset