use correct jsoncpp types for iteration