Validate config format (json) before writing to ZooKeeper

This pull request is patch for #226