JSON-Format Prefix Tree Generator

Description:   Generates a prefix tree in json format, from a flat JavaScript array. Useful, among other things, for creating pre-built completion trees for use with autocomplete. Providing a pre-built prefix tree saves the client the time needed to build one up.

Works with:   JavaScript class Et1.oModel.oDataStructures.oCollections.PrefixTree, located at: et1/src/lib/model/data_structures/collections/PrefixTree.js

Directions:

See:   The test harness at: et1/dev_tools/test/harness/prefix_tree_autocomplete/index.html.

Input

Output