code: protected boolean isEscaped(byte nextByte) {
          boolean result = false;
          if (inString) {
              if (nextByte == '\"' && !escapedInString) {
                  inString = false;
              }
  
              if (nextByte == '\\' && !escapedInString) {
                  escapedInString = true;
              } else if (escapedInString) {
                  escapedInString = false;
              }
              result = true;
          } else {
              if (nextByte == '\"') {
                  inString = true;
                  result = true;
              }
          }
          return result;
      }
docs: Detects opening and closing of JSON strings and keep track of it in order
  to mark characters in the string (delimiter quotes included) as escaped.
  
  Quotes escaped by a \ are correctly detected and do not mark a closing of
  a JSON string.
  
  @param nextByte the next byte to inspect.
  @return true if the byte should be ignored as part of a JSON string, false otherwise.