Package net.lightapi.portal
Class SchemaUtil
- java.lang.Object
-
- net.lightapi.portal.SchemaUtil
-
public class SchemaUtil extends Object
A utility class that work with Json and Yaml- Author:
- Steve Hu
-
-
Constructor Summary
Constructors Constructor Description SchemaUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisJson(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.
-
-
-
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
-
-