json pretty print FP