Revert allowing string in Dict.from_json and correct json parsing from attributes