public static OffsetProfile parseJsonStr(String jsonStr) {
        OffsetProfile offsetProfile = new OffsetProfile();
        offsetProfile.loadJsonStrResource(jsonStr);
        return offsetProfile;
    }
parse json string to configuration instance.

@return job configuration
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/conf/OffsetProfile.java