Understanding The JSON structure of EA dashboard-1

Amandeep Singh(Sfdca2z)
Nov 4 · 4 min read

Brief introduction of JSON structure

  • JSON is a key value pair (“name”: “John”, “age”: 31).
    name is the key and John is the value
    age is the key and 31 is the value.
  • Object in JSON start with { and end with }
    eg- “myClass” :{ “name”:”John”, “age”:30, “car”:null }
    myClass →ObjectName.It is key
    { “name”:”John”, “age”:30, “car”:null } →value of the object (myClass)

    Again in { “name”:”John”, “age”:30, “car”:null } contain 3 key value pairs
    “name”:”John”
    “age”:30
    “car”:null

    Here keys are name,age,car and values are John ,30,null respectively
  • Nested Object
    “myClass1” : {
    “name”:”John”,
    “age”:30,
    “cars”: {“car1”:”Ford”,”car2":”BMW”,”car3":”Fiat”}
    }

    myClass1→ Is Name of Object .It is key

    {“name”:”John”,
    “age”:30,
    “cars”: { “car1”:”Ford”, “car2”:”BMW”,”car3":”Fiat” }
    }
    The above is the value of myClass1.
    It has 3 key value
    1)”name”:”John”
    2)”age”:30,
    3)”cars”: {“car1”:”Ford”,”car2":”BMW”,”car3":”Fiat”
    }
    The first two are simple key and value pair
    But third
    cars →Is Name of Object .It is key
    {“car1”:”Ford”,”car2":”BMW”,”car3":”Fiat”}→ It is value for “cars” Object which has again 3 key and pairs.
  • Array in JSON
    Array start with [ and end with ]
    for eg:[ “Ford”, “BMW”, “Fiat” ]

    “myObject2”:{
    “name”:”John”,
    “age”:30,
    “cars”:[ “Ford”, “BMW”, “Fiat” ]
    }

    cars →It is key
    [ “Ford”, “BMW”, “Fiat” ] →Value for the key “cars”.It is an array
    which contain 3 elements.
  • Nested Array and object
    “myObj3”: {
    “name”:”John”,
    “age”:30,
    “cars”: [
    { “name”:”Ford”, “models”:[ “Fiesta”, “Focus”, “Mustang” ] },
    { “name”:”BMW”, “models”:[ “320”, “X3”, “X5” ] },
    { “name”:”Fiat”, “models”:[ “500”, “Panda” ] }
    ]
    }
    cars → It is key.
    value →[
    { “name”:”Ford”, “models”:[ “Fiesta”, “Focus”, “Mustang” ] },
    { “name”:”BMW”, “models”:[ “320”, “X3”, “X5” ] },
    { “name”:”Fiat”, “models”:[ “500”, “Panda” ] }
    ]
    It is an array which contain three Object.
    1){ “name”:”Ford”, “models”:[ “Fiesta”, “Focus”, “Mustang” ] }
    2) { “name”:”BMW”, “models”:[ “320”, “X3”, “X5” ] }
    3){ “name”:”Fiat”, “models”:[ “500”, “Panda” ] }

    Each Object contain 2 key Value Pair.
    1)”name”:”Ford”
    2)”models”:[ “Fiesta”, “Focus”, “Mustang” ]

    models→ key
    [ “Fiesta”, “Focus”, “Mustang” ] is value which is an array of 3 elements.

Json can be different combinations of Objects, Arrays in the form of KEY-VALUE


New Dashboard JSON

The json of new Dashboard is

mmmm
mmmm

Line 1: { →It represent the starting of an Object
Line 2: “label”: “New dashboard” →
1)It is a key value Pair
2)”label” is key and “New dashboard” is value which represent name the dashboard
Line 3: “mobileDisabled”: false
1)This Property Allow/Don’t Allow the dashboard to be shown in Analytics mobile App
Line 4: “state”: { — }
1)state is the key whose value is an Object.
2)The value contains all the major parts of dashboard(like Pages, Steps etc).
Line 43:”datasets”: []
1)The value of the key(datasets) is an array.
2)The array contains the datasets that are contain in dashboard.Currently it is empty because it has no dataset.
Line 44: } →It represent the end of an Object

— — — — — — —Line 4: “state”: { — }— — — — — — — — — — — — -

State with its value

From line 4 to 42 has value of key(state)
Line 5: “steps”: {}
1) The value of the key(steps) is an Object
2)It contains the queries created from the UI from Tab “Create Query”

Line 6: “widgets”: {}
1) The value of the key(widgets) is an Object
2)It contains the type of charts and its properties used for the visualization.

Line 7: “filters”: []
1) The value of the key(filters) is an Array
2)It contains the Global Filters.

Line 8: “gridLayouts”:[]
1)The value of the key(gridLayouts) is an Array.
2)It contain the properties and characterstics of the Canvas from line 8 to 39

GridLayout and its Properties

Line 34: “dataSourceLinks”: []
1)The value of the key(datasets) is an array.
2)Used to connect different datasets.
3)Filtering of one dataset can filter the other dataset on basis of joined field.

Line 35: “widgetStyle”: { — }
1)The value of the key(datasets) is an Object.
2)It contain the properties and characterstics of the Widget from line 36 to 40.

WidgetStyle and its properties

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade