Class JsonParser


  • public class JsonParser
    extends Object
    The type Json parser.
    Author:
    Harsh Shah
    • 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 characters
        startIdx - the start idx
        openingClosingMap - the opening closing map
        Returns:
        hash model
      • parse

        public static HashModel parse​(String jsonString)
        Parse hash model.
        Parameters:
        jsonString - the json string
        Returns:
        hash model