public synchronized String getStatsJsonString() {
      if (statsJSON != null) {
        return statsJSON.toString();
      }
      return null;
    }
Preferred objectMapper for this class.

It must be used to have things work in shaded environment (and its also more performant).
ql/src/java/org/apache/hadoop/hive/ql/QueryDisplay.java