Fix JSON parse error problem on deployment creation

Fixes #9