Add json format support
Default to emulated raw format