use json format to extract text