Home
Odd topic on a hunting forum but this place has experts on everything.

I want to find a program that will let me search thru several folders/sub directories of JSON and see all the examples of a certain value being used.

I'm trying to find a notepad++ extension that will do it. I really don't want to write a python program to do it if someone has already got an executable or an extension I can download

Here is it Xmas week and I'm supposed to be on vacation, but instead I'm phuggin around with this at work to make a customer happy.

Local Dirt or Shaman
I have not been able to find any apps or extensions to do that. I typically go to jsoneditoronline.org. You can paste your json in and then search. It does not provide a list of values found but you can find each one. Its quick and dirty but it works.
Not a bona fide expert but I've worked with JSON a fair bit.

https://jsonformatter.org/json-parser

https://jsonparser.org/

Try one of these. Copy and paste your JSON formatted file on the left and the tree structure will be on the right. I haven't looked at them that closely but they seem to have filters to pick out strings.
Originally Posted by Jim in Idaho
Not a bona fide expert but I've worked with JSON a fair bit.

https://jsonformatter.org/json-parser

https://jsonparser.org/

Try one of these. Copy and paste your JSON formatted file on the left and the tree structure will be on the right. I haven't looked at them that closely but they seem to have filters to pick out strings.


jsoneditoronline.org does the same thing but has a search function.
I'm looking at 400+ files , it would be a game changer for me if I could search multiple files.
Ideally I'd like to be able to write some JSON and have it auto fill in from the sub directory files.

Notepad++ is pretty good about searching thru multiple files for text but its not a smart search, I need a specific extension that does it for JSON.
Bash script?
Originally Posted by KFWA
Notepad++ is pretty good about searching thru multiple files for text but its not a smart search, I need a specific extension that does it for JSON.

Not a JSON expert, but why can't you filter the NP++ search to only include the directories and file extensions you want to look at?
How much Python do you know?
It has both a JSON library that's very handy for working with it.
yea very little unfortunately.

I am unpacking the directories locally now and when it finishes I will see what NP++ can do OOTB
Hmm... Notepad++. Sounds like M$. Can't help much there. On Unix I'd probably use egrep/find or perl. I don't know to what extent these have been ported to M$.
I installed a program called XML Spy. No idea how good it is but it has a similar find in files feature that notepad++ has. I was able to find some documentation that has all the declarative UI statements, so I'll just manually search thru them today.
On unix or linux, I would just grep / egrep for the value. Depending on the version of windows you are on, you may be able to do the same, although it is a hidden feature.

Happy Holidays.
You need a bash shell and use grep, Mac or linux are your huckelberry for stuff like that.
thanks, I'm crunched for time but I'll look into after Xmas when I'm bumming around the house

I'm using the search in files feature to walk thru the attribute values. Its tedious but I'm making progress.

I ended up installing Microsoft Visual Studio Code (not visual studio).

It doesn't build the schema dictionary like I hoped but its a pretty powerful tool for I assume free. I just downloaded and installed it after a recommendation in some documentation I was using.
© 24hourcampfire