Correct attribute parsing from JSON