skip to Main Content

jq convert to csv with keys to column rows – CentOS

I have JSON example like this { "server1": { "dhcp-libs": "12:4.2.5-83.el7.centos.1", "perl-Time-Local": "1.2300-2.el7", "kbd-legacy": "1.15.5-15.el7", "perl-Scalar-List-Utils": "1.27-248.el7", "ncurses-base": "5.9-14.20130511.el7_4", "firewalld": "0.6.3-13.el7_9", "perl-threads": "1.87-4.el7", "aic94xx-firmware": "30-6.el7", "kpartx": "0.4.9-135.el7_9", "perl-Getopt-Long": "2.40-3.el7", "basesystem": "10.0-7.el7.centos", "rsyslog": "8.24.0-57.el7_9.1", "libtirpc": "0.2.4-0.16.el7", "python3-libs": "3.6.8-18.el7", "btrfs-progs": "4.9.1-1.el7", "ncurses-libs":…

VIEW QUESTION

How to check if data returned from ajax as json is empty object or not – Jquery ajax

I have set this script for checking if the email address exists in the DB or not: function checkemail(){ var e = document.getElementById("email").value; if(e != ""){ document.getElementById("emailstatus").innerHTML = 'checking ...'; $.ajax({ type:'get', url:'{!! URL::to('checkEmailExists') !!}', data:{'email':e}, success:function(data){ // console.log(data); if(Object.keys(data).length…

VIEW QUESTION
Back To Top
Search