Class JSON

    • Method Detail

      • createSection

        public JSONSection createSection​(String key)
        Description copied from interface: SectionMap
        Create the section named key
        Specified by:
        createSection in interface SectionMap
        Parameters:
        key - the key of the Section
        Returns:
        a section named key
      • getSection

        public JSONSection getSection​(String key)
        Description copied from interface: SectionMap
        Get the section named key
        Specified by:
        getSection in interface SectionMap
        Parameters:
        key - the key of the Section
        Returns:
        the section named key
      • getList

        public JSONList getList​(String key)
        Get the list named key
        Parameters:
        key - the key of the list
        Returns:
        a list named key
      • toJson

        public String toJson()
        Translate this JSON instance into json String
        Returns:
        json String translated from this JSON instance