Json: use B_PRI* constants

This fixes the x86_64 build.