destroy and errors for json
Merge pull request #3 from finnp/destroy

destroy and errors for json