code: public static String toJSONString(final Props props, final boolean localOnly) {
      final Map<String, String> map = toStringMap(props, localOnly);
      return JSONUtils.toJSON(map);
    }
docs: Convert props to json string
  
  @param props props
  @param localOnly include local prop sets only or not
  @return json string format of props