update with pretty printer for json