Hello ... i am confused about the json path related questions in mock and lighte . . .

I Malla:
hello … i am confused about the json path related questions in mock and lightening labs … i could solve them only after looking into its solution …How can i solve any json realated question that will be there in exam ?

Gurudutt Dongre:
I use -o yaml and redirect the output to a file then go to the key/value that is actually needed and then backtrack it to the beginning of the file and while I do that I start writing my jsonpath query. I find yaml outputs easier to read than json. This may not be the best method but helps me.

Vagif Gafar:
Well, there is no way to learn jsonpath easily, but you need to use -o json and play with getting various parameters/values for 3 types of objects:
pods, nodes, deployments.

Use this site to play with json otput obtained above. http://jsonpath.com/ After a number of trials you will understand the structure of json for above 3 objects and will be able to extract required information. Memorise it to good extent and you will be ok.