This JSON generator in XSLT is specifically to match the GSP format XML that is generated as a common format for many search implementations.
The JSON wraps everything in one master node 'GSP', then handles results by wrapping those (if they exist) in GSP/RES.
It currently needs some more work in relation to sanity checking but thankfully the format imposes lots of restrictions on that anyhow.
- Currently not supporting v7.0+ (although it works)
- IE8+ does not treat output always as JSON (Quick fix in JQuery does correct this)
This project is undergoing active review.
- Test cases
- Sanity checks
- JavaScript Examples
- Other client features
- Added Dynamic Navigation Elements
- Moved PARAM to a template, instead of doing inline processing. Inline with local version.
- Fixed minor issue in readme file.
- Added CRAWLDATE to R (Issue #8)
- Fixed FS tag (Issue #7)
- Set the S tag to populate -- need to sanitize (Issue #9)
- Added OneBox support ENTOBRESULT
- Added Key Match support (GM)
- Added Spelling support (Spelling/Suggestion)
- Added Synonym support (Synonym)
Added Meta Tag support and handled generation of display urls slightly better to match the standard XSLT output.
Initial commit. Push to get things working.