only parse root if the data is a hash