Fix json attribute parsing from xml