JSON pretty print output works correctly