npl term to each_term, reformat original json