fix json pretty print, added value::clear