title: How to parse JSON with random fields in Typescript and React.js
body: <p>Have <code>Json string</code> with random fields in <code>Typescript</code>( I don't know what kind of fields inside of <code>json string</code> or their types). Want parse <code>json string</code> to object with default type of fields for example <code>string</code>. </p>
  
  <p>Parsing like this: <code>let values = JSON.parse(this.props.values!)</code></p>
  
  <p>Having error when working with React.js, because of type <code>unknown</code>. Also can't predefine <code>interface</code> because I don't know what inside <code>json string</code></p>
  
  <pre><code>Object.entries(values).map(([key, value]) =&gt; {
                  renderValues = (
                      &lt;&gt;
                          &lt;div className="col-1 text-left p-2" &gt;&lt;/div&gt;
                          &lt;div className="col-2 text-right p-2" &gt;{key}&lt;/div&gt;
                          &lt;div className="col-9 text-left p-2" &gt;{value}&lt;/div&gt;
                      &lt;/&gt;)
              })
  </code></pre>
  
  <p>Have error:
  Type 'unknown' is not assignable to type 'ReactNode'.
    Type 'unknown' is not assignable to type 'ReactPortal'.ts(2322)
  index.d.ts(1244, 9): The expected type comes from property 'children' which is declared here on type 'DetailedHTMLProps, HTMLDivElement>'</p>
  
  <p>How in typescript when parsing <code>json string</code> to object give to object fields default type or cast object fields to default type?</p>