write ppl json data to file