Decode all JSON fields and clean conflict result

*Feature*: If a merge conflict occures, set the failure status and exit in a clean way.

*Bugfix*: decode all JSON data, not only URLs (for example, if someone uses / in a branch name)