converted peframe to output a single line of JSON