JSON pretty print and reorganization of precious