Revert allowing json encoded strings in from_json
Fix json attribute parsin from xml