hack for older jansson than 2.3