JSFiddle - React, Tailwind, and code Playground

by nsatija

JavaScript

var json =   {
address: "3104 Silverleaf Court",
city: "Belleville",
company: "Coolfire Solutions",
country: "US",
createdAt: "2019-07-11T03:45:02.000Z",
email: "[email protected]",
expectedRate: "",
expectedSalary: "",
firstName: "Dave",
ip: "162.158.75.254",
isRejected: false,
jobkey: "0d1d70f1912aa8a4",
jobtitle: "Marketing Manager",
lastName: "Scott",
message: null,
phone: "6185788384",
rating: 0,
resumeUrl: "https://s3-us-west-2.amazonaws.com/fla.resumes/5ba98e0b-0046-4583-9a24-c25a96014402_DavidScottResume2019.docx",
state: "AL",
status: "new",
statusId: 0,
updatedAt: "2019-07-11T03:45:02.000Z",
userId: "1fda1420-a38e-11e9-93f5-63636457b23a",
workStatus: "USC",
zip: "62221",
_id: "435f3fb0-a38e-11e9-93f5-63636457b23a",
  }

$('body').html();

var paramName = 'options'

for (var key in json) {
  if (json.hasOwnProperty(key)) {
    $('body').append('this.' + key + " = " + paramName + '.' + key + ';<br>');
  }
}