For better performance nested objects only will work for data attributes