SuperObject.Delphi icon indicating copy to clipboard operation
SuperObject.Delphi copied to clipboard

Support for JSON object bigger than Max(Integer)

Open tuncbahceciogluBentley opened this issue 8 months ago • 1 comments

Since the size of the json string is stored in an integer JSON object cannot support big data. It would be better to use NativeInt as it is used as the size type in the latest Delphi versions.

See the definition of TSuperArray member FSize: https://github.com/pult/SuperObject.Delphi/blob/6c886fec89fbc32d1aaa95ea7d4ccd3650c2256b/Lib/superobject.pas#L526

TSuperArray = class({+}TInterfacedObject{+.}, ISuperArray)
  private
    FArray: PSuperObjectArray;
    FLength: Integer;
    FSize: Integer;
...

tuncbahceciogluBentley avatar Jun 09 '24 23:06 tuncbahceciogluBentley