Class JsonParser
- java.lang.Object
-
- io.github.handsomecoder.utils.json.JsonParser
-
public class JsonParser extends Object
The type Json parser.- Author:
- Harsh Shah
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HashModelbuildMap(char[] characters, Integer startIdx, Map<Integer,Integer> openingClosingMap)Build map hash model.static Map<Integer,Integer>findOpeningClosingBrackets(String jsonString)Find opening closing brackets map.static HashModelparse(String jsonString)Parse hash model.
-
-
-
Method Detail
-
findOpeningClosingBrackets
public static Map<Integer,Integer> findOpeningClosingBrackets(String jsonString)
Find opening closing brackets map.- Parameters:
jsonString- the json string- Returns:
- map map
-
buildMap
public static HashModel buildMap(char[] characters, Integer startIdx, Map<Integer,Integer> openingClosingMap)
Build map hash model.- Parameters:
characters- the charactersstartIdx- the start idxopeningClosingMap- the opening closing map- Returns:
- hash model
-
-