title: 500 internal server error for Curl command for POST method(for JSON ) of restful web service using Go
body: <p>There is a file named countries.go 
  It imports package github.com/ant0ine/go-json-rest/rest.</p>
  
  <p>referred code from </p>
  
  <p><a href="https://gowalker.org/github.com/ant0ine/go-json-rest#countries" rel="nofollow">https://gowalker.org/github.com/ant0ine/go-json-rest#countries</a> </p>
  
  <p>Countries section:Demo of POST DELETE etc</p>
  
  <p>When i try to use command 
     curl -i -d '{"Code":"FR","Name":"France"}' http_URL</p>
  
  <p>It gives</p>
  
  <p>{
    "Error": "invalid character '\'' looking for beginning of value"
  }</p>
  
  <p>I have used the package given above .It seems the method in the request.go given as DecodeJsonPayload() ,which implements unmarshal() for JSON ,  have internal server error.</p>
  
  <p>I am unable to correct that.Help appreciated</p>