Add json_loadb() for decoding possibly non null-terminated strings