#jmacThis is *almost* that... it being Perl, all the sturctures are just primitives that are "blessed" into named classes (and the JSON export strips that out). But my "document" objects have a few extra indices and stuff to help with queries, as well.