Pretty JSON encoder with keys sorting feature