2 Commits
Author SHA1 Message Date
qbug ebd4f26249 feat(json_node): add array size calculation to JSON parser
- Add INT return type for array size
- Implement array size calculation in parse_json method
- Return array size along with parsed data
- Handle array size calculation for both root and nested JSON structures
- Return -1 for non-array JSON elements

This change enhances the SimpleJSONParserNode to provide array size information,
improving its utility for array processing tasks in ComfyUI workflows.
2024-10-12 00:42:58 +08:00
qbug 8a91591a38 feat(utils): implement SimpleJSONParserNode for JSON parsing
- Add SimpleJSONParserNode class with JSON parsing functionality
- Implement path-based access for nested JSON structures
- Handle various data types and error conditions
2024-10-11 22:28:49 +08:00