JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<pre></pre>
JavaScript
var myData = [];
var myObj = { product: "phone", quantity: 100, color: "red", secondColor:'', imei: "43904325" };
myData.push(myObj);
$('pre').html(JSON.stringify(myData,null,4));