JSFiddle - React, Tailwind, and code Playground

HTML

<div id="result"></div>

JavaScript

var json = {name: 'chan'};
arrs = ['info'];

arrs.forEach(function(item) {
	$.extend(json, {[item]: {
    	age: 35,
        height: 180
    }});
});

$('#result').html(JSON.stringify(json));