/GSA-JSON-Results-stylesheet

Google Search Appliance XSL to output results in formatted JSON.

Primary LanguageXSLT

gsa-json-ouput-format

2013 Dom Sammut @domsammut

Google Search Appliance XSL to output results in formatted JSON.

Notes

  • Retains the same structure as the XML source.
  • Nodes that are empty will have null as a value.
  • Support for Dynamic Navigation. This can be turned off at line 25 by setting the false to false()

To do:

  • Document Preview support
    • Split the XML node into nice chunks and create custom json structure since all the information for document previews is just dumped into a single node
  • Option to turn off tab spacing and other structural formatting (to reduce file size slightly)