Do you need to query large JSON structures? Do you end up coding loops to parse the JSON and identify the data that matches your query? Defiant offers a better way. Defiant extends the global JSON object with a "search" method that enables lightning-fast searches using XPath expressions. Try out the XPath Evaluator to get the idea. DefiantJS provides the ability for you to build smart templates applicable on JSON structures, based upon proven & standardized technologies such as XSLT and XPath. As of v2.0.0, Defiant can be utilized in the Node.js environment. Since there is no default support for XML technologies in Node, the library puppeteer is initiated to mimic the browser environment, with Defiant running. All methods called from Node is piped via Puppeteer. Even though, Defiant now can be used in the Node environment - utilizing Defiant in the browser is recommended. It all boils down to whether you want your servers to run thousands of searches for your clients.
Features
- Installation from npmjs.com
- Build smart templates applicable on JSON structures
- Based upon proven & standardized technologies such as XSLT and XPath
- Defiant in Node environment
- Facet search
- Snapshot search