JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" name="test">
JavaScript
var jsonValue = { "a": null, "b": 1001 };
$(document).ready(function() {
$('input[name=test]').val(jsonValue['b']);
});
<input type="text" name="test">
var jsonValue = { "a": null, "b": 1001 };
$(document).ready(function() {
$('input[name=test]').val(jsonValue['b']);
});