Question About Storing Segment Identifiers When Exporting HSF and JSON Model Tree

Hello everyone,

I would like to export an HSF file together with a JSON file that contains the model tree information of the HSF model.

In the JSON file, each node represents one segment of the model.

My question is:
Is there any information other than the segment name (for example, a unique node ID) that I can store in the JSON file, so that when I read the JSON data later, I can accurately and quickly find the exact segment in the model to perform operations such as highlighting?

Currently, I am searching for segments by name. However, when the number of segments reaches millions, searching by name becomes very resource-intensive. It may also be unreliable if multiple segments share the same name.

Thank you very much for your support.