decode static method

dynamic decode(
  1. String inputExprString, {
  2. Object? reviver(
    1. Object?,
    2. Object?
    )?,
  3. bool debugMode = false,
})

the decoder entrypoint: this method handles the decoding

Implementation

static dynamic decode(String inputExprString,
    {Object? Function(Object?, Object?)? reviver, bool debugMode = false}) {
  inputString = inputExprString;

  inputString = inputString.replaceAll("\\\"", "\\u00E6");
  inputString = inputString.replaceAll("\\u003d", "=");

  index = 0;
  look = "";

  dynamic jsonObject = parseJSONStructure(0, debugMode, reviver: reviver);

  return jsonObject;
}