src/main/software/amazon/event/ruler/JsonRuleCompiler.java [140:156]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                    final Path path,
                                    final JsonParser parser,
                                    final boolean withQuotes) throws IOException {

        boolean fieldsPresent = false;
        while (parser.nextToken() != JsonToken.END_OBJECT) {
            fieldsPresent = true;

            // field name
            final String stepName = parser.getCurrentName();

            // If it is "$or" primitive, we should bypass that primitive itself in the path as it is not
            // a real field name, it is just used to describe the "$or" relationship among object in the followed array.
            if (stepName.equals(Constants.OR_RELATIONSHIP_KEYWORD)) {
                parseIntoOrRelationship(rules, path, parser, withQuotes);
                // all Objects in $or array have been handled in above function, just bypass below logic.
                continue;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/software/amazon/event/ruler/JsonRuleCompiler.java [180:195]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                        final Path path,
                                                        final JsonParser parser,
                                                        final boolean withQuotes) throws IOException {

        boolean fieldsPresent = false;
        while (parser.nextToken() != JsonToken.END_OBJECT) {
            fieldsPresent = true;

            // field name
            final String stepName = parser.getCurrentName();

            // If it is "$or" primitive, we should bypass the "$or" primitive itself in the path as it is not
            // a real step name, it is just used to describe the "$or" relationship among object in the followed Array.
            if (stepName.equals(Constants.OR_RELATIONSHIP_KEYWORD)) {
                parseIntoOrRelationship(rules, path, parser, withQuotes);
                continue;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



