Added alternate implementation for DMD 2.64

At some point std.json changed how you set types.
Left the previous 2.66 implementation in place as the old style code
spams deprecation warnings.