code: private void parseElement(final String elementName, final boolean inArray) throws Exception {
          JsonToken currentToken = jsonParser.getCurrentToken();
          if (inArray) {
              startElement(elementName);
          }
          if (START_OBJECT.equals(currentToken)) {
              parseObject();
          } else if (START_ARRAY.equals(currentToken)) {
              parseArray(elementName);
          } else if (currentToken.isScalarValue()) {
              parseValue();
          }
          if (inArray) {
              endElement(elementName);
          }
      }
docs: Pares JSON element.
  @param elementName
  @param inArray if the element is in an array
  @throws Exception