fixed json encoding, added content-type header to curl request
Merge pull request #4 from mhmaguire/master

fixed json encoding, added content-type header to curl request