title: How to find JSON objects without actually parsing the JSON (regex)
body: <p>I'm working on filtering a website's data and looking for keywords. The website uses a long JSON body and I only need to parse everything before a base64-encoded image. I cannot parse the JSON object regularly as the structure changes often and sometimes it's cut off.</p>
  <p>Here is a snippet of code I'm parsing:</p>
  <pre><code>&lt;script id=&quot;__APP_DATA&quot; type=&quot;application/json&quot;&gt;{&quot;routeProps&quot;:{&quot;b723&quot;:{&quot;navDataResource&quot;:[{&quot;catalogId&quot;:48,&quot;parentCatalogId&quot;:null,&quot;icon&quot;:&quot;https://bin.bnbstatic.com/image/20200609/bbjy2x.png&quot;,&quot;catalogName&quot;:&quot;New Crypto Listings&quot;,&quot;total&quot;:762,&quot;articles&quot;:[{&quot;id&quot;:54572,&quot;code&quot;:&quot;0ef69e1d334c4d8c9ffbd088843bf2dd&quot;,&quot;title&quot;:&quot;Binance Will List GYEN&quot;},{&quot;id&quot;:54548,&quot;code&quot;:&quot;e5607624f4614c3f9fd2562c8beb8660&quot;,&quot;title&quot;:&quot;BTG, DEXE \u0026 SHIB Enabled on Binance Isolated Margin&quot;},{&quot;id&quot;:54394,&quot;code&quot;:&quot;a176d4cfd4c74a7fb8238e63d71c062a&quot;,&quot;title&quot;:&quot;Binance Futures Will Launch USDT-Margined ICP Perpetual Contracts with Up to 25X Leverage&quot;},{&quot;id&quot;:54392,&quot;code&quot;:&quot;4fa91d953fd0484ab9a48cca0a41c192&quot;,&quot;title&quot;:&quot;Binance Will Open Trading for Internet Computer (ICP)&quot;},{&quot;id&quot;:54382,&quot;code&quot;:&quot;33b6e8116ce54705ac89e898d1a05510&quot;,&quot;title&quot;:&quot;Binance Will List Internet Computer (ICP)&quot;}],&quot;catalogs&quot;:[]},{&quot;catalogId&quot;:49,&quot;parentCatalogId&quot;:null,&quot;icon&quot;:&quot;https://bin.bnbstatic.com/image/20200609/zxgg2x.png&quot;,&quot;catalogName&quot;:&quot;Latest News&quot;,&quot;total&quot;:1164,&quot;articles&quot;:[{&quot;id&quot;:54649,&quot;code&quot;:&quot;2291f02b964f45b195fd6d4685db80bb&quot;,&quot;title&quot;:&quot;Update on Trading Suspension for GYEN&quot;},{&quot;id&quot;:54646,&quot;code&quot;:&quot;724346d139b041198a441dc149133c7d&quot;,&quot;title&quot;:&quot;Binance Liquid Swap Adds RAMP/BUSD Liquidity Pool&quot;},{&quot;id&quot;:54643,&quot;code&quot;:&quot;bc9f313c04cc40d2b7e598c831fd721f&quot;,&quot;title&quot;:&quot;Notice on Trading Suspension for GYEN&quot;},{&quot;id&quot;:54591,&quot;code&quot;:&quot;b3c6998066af43078c63a5498bfd80b1&quot;,&quot;title&quot;:&quot;Binance P2P Supports New Payment Methods for Mongolia&quot;},{&quot;id&quot;:54586,&quot;code&quot;:&quot;d4418be0b9ea4d1b8e92cbbfe8468a17&quot;,&quot;title&quot;:&quot;Dual Investment (42nd Phase) - Earn Up to 56% APY&quot;}]
  </code></pre>
  <p>As you can see, I'm trying to weed out everything except for these:</p>
  <pre><code>{&quot;id&quot;:54382,&quot;code&quot;:&quot;33b6e8116ce54705ac89e898d1a05510&quot;,&quot;title&quot;:&quot;Binance Will List Internet Computer (ICP)&quot;}
  </code></pre>
  <p>As the JSON is really long and it wouldn't be smart to parse the entire thing, is there a way to find strings like these without actually parsing the JSON object? Ideally, I'd like for everything to be in an array. Will regular expressions work?</p>
  <p>The ID is 5 numbers long, the code is 32 characters long, and there is a title.</p>
  <p>Thanks a lot in advance</p>