moving json to attributes