JSFiddle - React, Tailwind, and code Playground
JavaScript
var $responce = {n: "а1"};
var $obj = JSON.parse('{"a1":{"width":"0","height":"-59"}}');
//var $next = 'a1';
var $next = $responce['n'];
console.log($obj[$next]);