convert KNP's output to JSON