JSFiddle - React, Tailwind, and code Playground

by thesystemrestart

JavaScript

var myjson = {
           "container" : [
                {
                 "a1": {
                    "b1": {
                        "c1": 'Value 1'
                      }
                  },
                 },
                 {
                 "a2": {
                    "b2": {
                        "c2": 'Value 2'
                      }
                  }
                 }
             ]
        };


function simplify(obj) {
    $.each(obj, function() {
       console.log(this);
    });
}

simplify(myjson.container);