Skip to content

bradsec/jsonsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Search and Sort

Live search and sort one or more JSON data files

This script, built entirely using pure JavaScript without any third-party libraries or tools. The script enables easy searching and filtering of one or more JSON data files which share the same key/value formatting structure.

Features

  • Load and search multiple json files/datasets.
  • Uses flat locally stored files, no database or API (however can be modified for these use cases).
  • Effective keyword matching ensuring accuracy and relevancy of results.
  • Users can input additional search keywords to further narrow down the search results.
  • Also includes ability to sort by JSON keys or values.
  • To enhance performance and user experience, the script incorporates an infinite scrolling feature.

The live demo shows a mock product pricing and sale comparison between two stores (using two JSON files/datasets).