Nested Type Binder
DataLoom Pro supports nesting structures (such as lists within lists, or arrays of custom structs/classes) inside spreadsheet cells.
Cell JSON Serialization
For complex fields, format your cells using standard JSON:
- Nested Class:
{"cooldown":10.5,"energyCost":30} - Multi-dimensional Lists:
[[1,2],[3,4]] - Custom Struct Lists:
[{"tag":"fire","dmg":5},{"tag":"ice","dmg":10}]
DataLoom’s NestedTypeBinder identifies that the target field is a custom structure and uses Newtonsoft.Json to deserialize the string directly into the assigned object structure in memory.
Nested Class Requirements
Ensure your custom sub-classes or structs are serializable:
- Annotate the nested class with the
[System.Serializable]attribute. - Variable names inside the class must match the keys in the cell’s JSON dictionary (case-sensitive).