Add json support.
Temporary fix.