Accepting invalid array
bendrissou opened this issue · 1 comments
bendrissou commented
The parser program is accepting invalid json inputs. Specifically. It accepts arrays with extra comma at the end. Which is not consistent with the json specification.
The bug can be reproduced with the following input:
[true,]
kgabis commented
It's by desing, see https://en.wikipedia.org/wiki/Robustness_principle.