Page MenuHomePhabricator

The particular API request returns a broken json result
Closed, DuplicatePublic

Description

Fetching this URL:

wget "https://en.wiktionary.org/w/api.php?action=query&prop=revisions&titles=artifact|artifactuality|artifactualization|artifice|artificer|artificial%20abortion|artificial%20anus|artificial%20art|artificial%20florist|artificial%20horizon|artificial%20insemination|artificial%20intelligence|artificial%20language|artificial%20life|artificial%20person|artificial%20respiration|artificial%20selection|artificial%20sweetener|artificial%20turf|artificial-intelligence|artificialism|artificialist|artificiality|artificialization|artificialness|artificials|artilect|artillerist|artillery|artillery%20wheel|artilleryman|artillerywoman|artiness|artinite|artiodactyl|artiodactyle|artisanality|artisanry|artisanship|artist's%20conception|artist's%20proof|artistdom|artiste|artistess|artistic%20licence|artistic%20license|artistic%20revolution|artistic%20temperament|artisticness|artistry&rvprop=timestamp|user|comment|content&format=json&continue=&utf8" -O out.json

returns json that ends with bytes 77 86 15 ee that break json. jq fails to recognize it:

$ jq < out.json 
parse error: Invalid numeric literal at EOF at line 1, column 65532