congress-api-docs icon indicating copy to clipboard operation
congress-api-docs copied to clipboard

A handful of bills return invalid JSON

Open nicleary opened this issue 4 years ago • 0 comments

Several bills return JSON which cannot be read by most parsers, such as python's json.loads(). These seem to be caused by stray "" characters in the bill summaries.

An example of this can be found in hr1771-113, where there is an extra \ in the summary, which is followed by a space. This results in an unexpected escape character in most languages, and a JSONDecodeError is thrown.

nicleary avatar Nov 29 '21 19:11 nicleary