A lax Web news feed parser
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
527 B

Content-Type mismatch:
type: text/html
input: '{"version": "https://jsonfeed.org/version/1"}'
exception: notJSONType
Not valid JSON 1:
input: '{'
exception: notJSON
Not valid JSON 2:
input: '<rss><channel/></rss>'
exception: notJSON
Not a JSON feed 1:
input: '{}'
exception: notJSONFeed
Not a JSON feed 2:
input: '{"version": "https://example.com/"}'
exception: notJSONFeed
Not a JSON feed 3:
input: '{"version": "https://jsonfeed.org/version/"}'
exception: notJSONFeed