Commit Graph

4 Commits

Author SHA1 Message Date
ProjectSky
e1c5578324 feat: enhance JSON management with new rotation and value counting features
- Added ObjectRotate and ArrayRotate methods for rotating key-value pairs in JSON objects and arrays, respectively
- Introduced GetValCount method to retrieve the total number of values in immutable JSON documents
- Renamed all Float-related methods to Double in C++ interface (IJsonManager) for better precision clarity
- Fixed TypeAccess configuration in handle type registration to allow external extensions to create JSON handles by properly setting HTypeAccess_Create flag
- Renamed GetHandleType to GetJsonHandleType for better clarity and consistency
- Updated documentation to clarify usage and performance considerations for new methods
- Enhanced tests to cover rotation functionality and value counting in various JSON structures
2025-11-21 00:07:25 +08:00
ProjectSky
f596135996 feat: enhance JSON handling with performance and memory improvements
- Add WriteToStringPtr for optimized serialization without buffer allocations
- Implement reference counting with RefCounted/RefPtr for better memory management
- Support JSON Patch (RFC 6902) and Merge Patch (RFC 7386) operations
- Improve floating-point serialization with adjusted precision limits (1-7)
- Enhance iterators with reset capability and better error handling
- Update documentation and tests for new features
2025-11-16 10:37:57 +08:00
ProjectSky
cdb6cc009e refactor: streamline JSON error handling
- Introduced SetErrorSafe function to standardize error message handling across JSON operations
- Removed deprecated SetPackError function to reduce redundancy
- Updated IJsonManager interface to include a default destructor
2025-11-09 13:30:12 +08:00
ProjectSky
5af62b03b8 refactor: rename and update JSON extension components
- Renamed YYJSON to JSON throughout the codebase for consistency
- Updated file names and references, including YYJSONManager to JsonManager
- Added some new native functions
2025-11-08 20:25:29 +08:00