in nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/compiler/antlr4/NCIDLParser.java [851:906]
public final JsonObjContext jsonObj() throws RecognitionException {
JsonObjContext _localctx = new JsonObjContext(_ctx, getState());
enterRule(_localctx, 26, RULE_jsonObj);
int _la;
try {
setState(152);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,7,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(139);
match(LBRACE);
setState(140);
jsonPair();
setState(145);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(141);
match(COMMA);
setState(142);
jsonPair();
}
}
setState(147);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(148);
match(RBRACE);
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(150);
match(LBRACE);
setState(151);
match(RBRACE);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}