Move attributes to json