Class SchemaUtil


  • public class SchemaUtil
    extends Object
    A utility class that work with Json and Yaml
    Author:
    Steve Hu
    • Constructor Detail

      • SchemaUtil

        public SchemaUtil()
    • Method Detail

      • isJson

        public static boolean isJson​(String s)
        Detect if a string is JSON or not by checking the first char { | [ This is not a strict check but only a validation check, so further check is required by loading it with either JSON or YAML.
        Parameters:
        s - input string
        Returns:
        true if it is possible JSON