JSON/BSON data structure templating system