Finding a value with key in JSON psi file

Hi, I'm noob in Java and plugin development.

I just did get json psi file but can't do read the contents and find specific value.

final PsiFile[] psiFiles = PsiShortNamesCache.getInstance(project).getFilesByName("data.json");

This is how I get the json file and psiFile[0] is my file

Anybody guide me to get specific value with key?

0
1 comment
Official comment

You'll need to "walk" the PSI-Tree starting with `com.intellij.json.psi.JsonFile`, eventually using `com.intellij.json.psi.JsonElementVisitor`

Please sign in to leave a comment.