Code Monkey home page Code Monkey logo

Comments (9)

cesarliws avatar cesarliws commented on September 27, 2024 1

@Sorien I wrote my JSON builder using interfaces and designed as fluent interface that wraps JsonDataObjects, that way I can have the better of both, auto ref-count and JsonDataObjects

from jsondataobjects.

ahausladen avatar ahausladen commented on September 27, 2024

AUTOREFCOUNT is not a feature of JsonDataObject, it is a feature of the mobile (Android, IOS) compilers and is defined by the mobile compilers. Defining it yourself doesn't work (as designed).

from jsondataobjects.

Sorien avatar Sorien commented on September 27, 2024

oh sorry, i have no idea about new delphi features, are there any plans to make TJsonBaseObject ref counted?

from jsondataobjects.

ahausladen avatar ahausladen commented on September 27, 2024

It is ref-counted if you use a mobile compiler. For non-mobile compilers: no, because ref-counting would require changes to the compiler and source code can't do this.

from jsondataobjects.

Sorien avatar Sorien commented on September 27, 2024

hmm i thought using refcounted interfaces sometning like

var
  Obj, ClonedObj: IJsonObject;
begin
  Obj := TJsonObject.ParseUtf8('{ "foo": [ "bar", {}, null, true, false, { "key": "value" } ] }') as TJsonObject;
  ClonedObj := TJsonObject.Create;
   // Make a copy of Obj
  ClonedObj.Assign(Obj);
  ShowMessage(ClonedObj.ToJSON(False));
end;

couse i have huge problem with mem leaks (not fault of your library), and it would make my life a bit easier, ok never mind i've got answer, btw really nice lib and 👍 for D2009 support :)

from jsondataobjects.

ronaldhoek avatar ronaldhoek commented on September 27, 2024

Don't think .NET but think Delphi ;)

from jsondataobjects.

danieleteti avatar danieleteti commented on September 27, 2024

from jsondataobjects.

cesarliws avatar cesarliws commented on September 27, 2024

from jsondataobjects.

danieleteti avatar danieleteti commented on September 27, 2024

from jsondataobjects.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.