The code is in coffeescript I am trying to read a json file using the code below (cross domain)
 $.ajax
    url: 'https://canttypecompanyurlhere/books.json'
    dataType: 'JSONP'
    jsonpCallback: 'callback'
    type: 'GET'
    success: (data) ->
      console.log (data)
    error: () ->
      console.log('error')
And here's the json
{ "name": "book-1", "author": "someone smart" }
What am I doing wrong? I cannot get past the error "uncaught SyntaxError: Unexpected token :"
Please help
 
    