take json javascript into dom code example Example: create a json object in javascript var employee = { "firstName": firstName, "lastName": lastName }