Add logging of matches to JSON, and add series ID/type.