Class Json


  • public class Json
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Json()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String beautify​(java.lang.String str)
      Beautifies a JSON string.
      static java.lang.String parseValue​(java.lang.String key, java.lang.String str)
      Parses a value with a specific key from a JSON string.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Json

        public Json()
    • Method Detail

      • parseValue

        public static java.lang.String parseValue​(java.lang.String key,
                                                  java.lang.String str)
        Parses a value with a specific key from a JSON string.
        Parameters:
        key - The key to get the value with.
        str - The JSON string to perform the parsing with.
        Returns:
        The parsed value.
      • beautify

        public static java.lang.String beautify​(java.lang.String str)
        Beautifies a JSON string.
        Parameters:
        str - The JSON string to beautify.
        Returns:
        The beautified JSON string.