Merge topic 'json-bom'

afa4e5f749 cmJSONState: Move BOM handling to shared helper
18a335e062 cmPListParser: Hand JSONState a seekable stream

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12466