Added support to $value and $attributes also on XML -> JSON