Class JSONFormat


  • public class JSONFormat
    extends Object
    Utility to format JSON files by reading and serializing them. Keys will be sorted, and control characters or unicode will be escaped.
    • Constructor Detail

      • JSONFormat

        public JSONFormat()
    • Method Detail

      • main

        public static void main​(String[] args)
        Utility to format a single file or a directory of files matching a specified file extension (without the leading period).
        Parameters:
        args - Either the qualified file name of the file to be reformatted, or both the qualified directory name and the extension of files therein to be formatted (without the leading period).