{"action":"created","issue":{"url":"https://api.github.com/repos/stedolan/jq/issues/769","labels_url":"https://api.github.com/repos/stedolan/jq/issues/769/labels{/name}","comments_url":"https://api.github.com/repos/stedolan/jq/issues/769/comments","events_url":"https://api.github.com/repos/stedolan/jq/issues/769/events","html_url":"https://github.com/stedolan/jq/issues/769","id":71271541,"number":769,"title":"jq accepts and ignores some invalid JSON input ","user":{"login":"radiospiel","id":29153,"avatar_url":"https://avatars.githubusercontent.com/u/29153?v=3","gravatar_id":"","url":"https://api.github.com/users/radiospiel","html_url":"https://github.com/radiospiel","followers_url":"https://api.github.com/users/radiospiel/followers","following_url":"https://api.github.com/users/radiospiel/following{/other_user}","gists_url":"https://api.github.com/users/radiospiel/gists{/gist_id}","starred_url":"https://api.github.com/users/radiospiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radiospiel/subscriptions","organizations_url":"https://api.github.com/users/radiospiel/orgs","repos_url":"https://api.github.com/users/radiospiel/repos","events_url":"https://api.github.com/users/radiospiel/events{/privacy}","received_events_url":"https://api.github.com/users/radiospiel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-27T12:35:14Z","updated_at":"2015-04-27T22:57:47Z","closed_at":null,"body":"I use `jq . path/to/file > /dev/null` in a make-based environment to validate some JSON files. This works nice, in general, but I stumbled across this one:\r\n\r\n```\r\n> cat test.json \r\n{\r\n    \"foo\": \"bar'\r\n}\r\n> jq . test.json \r\n> \r\n```  \r\n\r\nI would expect jq to raise an error, since the input file is not valid json."},"comment":{"url":"https://api.github.com/repos/stedolan/jq/issues/comments/96844021","html_url":"https://github.com/stedolan/jq/issues/769#issuecomment-96844021","issue_url":"https://api.github.com/repos/stedolan/jq/issues/769","id":96844021,"user":{"login":"nicowilliams","id":604851,"avatar_url":"https://avatars.githubusercontent.com/u/604851?v=3","gravatar_id":"","url":"https://api.github.com/users/nicowilliams","html_url":"https://github.com/nicowilliams","followers_url":"https://api.github.com/users/nicowilliams/followers","following_url":"https://api.github.com/users/nicowilliams/following{/other_user}","gists_url":"https://api.github.com/users/nicowilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/nicowilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicowilliams/subscriptions","organizations_url":"https://api.github.com/users/nicowilliams/orgs","repos_url":"https://api.github.com/users/nicowilliams/repos","events_url":"https://api.github.com/users/nicowilliams/events{/privacy}","received_events_url":"https://api.github.com/users/nicowilliams/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T22:57:47Z","updated_at":"2015-04-27T22:57:47Z","body":"Fixed in master."}}