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

I can reintroduce it, but I think IDE-specific rules, such as *~, *.idea, etc. should go into the user's global gitignore, as s/he is the one with the specific tool.
https://help.github.com/articles/ignoring-files/#create-a-global-gitignore