So I'm working on app with Typescript and React native. I have json file with some info on poker hands that I need to access from my app.

JSON looks like this:

```
{
  "22": [
    [
      0,
      20
    ]
  ],
  "32o": [
    [
      0,
      20
    ]
  ],
  "32s": [
    [
      0,
      20
    ]
  ],
  "33": [
    [
      0,
      20
    ]
  ],

```

I'm importing json data with

```
import * as pdata from './push.json';

```

Data can be accessed like this:

```
pdata['AA'][0][1]

```

However, if I try try to access json with dynamically created keys like this

```
currentHand = '32o';
console.log(pdata[currentHand][0][1]);

```

I get error saying "Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '...' No index signature with a parameter of type 'string' was found on type '{ "22": number[][];...'.

Because of large amount of keys it is not really feasible to hardcode all different possibilities.
I've been searching for an answer but haven't found anything that works.