Add run time dependency on json codec

Fixes #5