Test

Benchmark created on


Setup

const json = `{"FixtureId":14677340,"Livescore":null,"Markets":[{"Id":9,"Name":"Correct Score 1st Period","Providers":[{"Id":93,"Name":"SkyBet","LastUpdate":"2025-04-18T14:25:45.9277629Z","Bets":[{"Id":98938526914677340,"Name":"4-1","Status":2,"StartPrice":"1.0","Price":"501.0","LastUpdate":"2025-04-18T14:25:45.8635486"}]},{"Id":93,"Name":"SkyBet","LastUpdate":"2025-04-18T14:25:45.9277629Z","Bets":[{"Id":98938526914677340,"Name":"4-1","Status":2,"StartPrice":"1.0","Price":"501.0","LastUpdate":"2025-04-18T14:25:45.8635486"}]},{"Id":93,"Name":"SkyBet","LastUpdate":"2025-04-18T14:25:45.9277629Z","Bets":[{"Id":98938526914677340,"Name":"4-1","Status":2,"StartPrice":"1.0","Price":"501.0","LastUpdate":"2025-04-18T14:25:45.8635486"}]},{"Id":93,"Name":"SkyBet","LastUpdate":"2025-04-18T14:25:45.9277629Z","Bets":[{"Id":98938526914677340,"Name":"4-1","Status":2,"StartPrice":"1.0","Price":"501.0","LastUpdate":"2025-04-18T14:25:45.8635486"}]}]}]}`

Test runner

Ready to run.

Testing in
TestOps/sec
parse
const parsed = JSON.parse(json)
const exists = parsed.Markets.some(m=>m.Id===1)
ready
regexp
const exists = /[{,}]"Id":1[,}]/gm.test(json)
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.