title: Assigning type when using JSON.parse for objects with many fields
body: <p>I have a json file that serves to map a name (string) to an id (number), but the data field is stringified. </p>
  
  <pre><code>{ data: "{\"tim\":0,\"john\":1,\"bill\":2}, ..., \"nthName\": n }"
  </code></pre>
  
  <p>After calling <code>JSON.parse</code> on the data field and assigning to nameToIdMapper, I am going to pass nameToIdMapper to multiple functions and I don't want to declare it as type any in the function declarations. </p>
  
  <p>Is there a way to describe the expected structure of an object, similar how you would via tuples, something like:</p>
  
  <pre><code>import nameData from './name.json'
  
  type NameToId = [string, number]
  const nameToIdMapper: {nameToId} = json.Parse(nameData.data) 
  </code></pre>
  
  <p>or is this just a practical use case of using type <code>any</code>?</p>