Converted attributes to json