no way to avoid the typedef for supporting old json releases