@SuppressWarnings("unchecked")
public Map<String, Object> bytesToMap(byte[] b) throws IOException {
if(b == null)
return null;
Map<String, Object> map;
ResourceFieldSchema fs = new ResourceFieldSchema();
fs.setType(DataType.MAP);
try {
ByteArrayInputStream bis = new ByteArrayInputStream(b);
PushbackInputStream in = new PushbackInputStream(bis);
map = consumeMap(in, fs);
}