Code Monkey home page Code Monkey logo

Comments (13)

avk959 avatar avk959 commented on May 30, 2024

Look in the example/json folder.

from lgenerics.

Alexey-T avatar Alexey-T commented on May 30, 2024

maybe also put the resulting .txt logs there, so I don't need to run them?

from lgenerics.

avk959 avatar avk959 commented on May 30, 2024

I've added a typical parsing benchmark result(in parse_bench2), and the rest have already been posted on the forum.

from lgenerics.

Alexey-T avatar Alexey-T commented on May 30, 2024

Only on forum? why not to put to GitHub as well, so people will find them.

from lgenerics.

avk959 avatar avk959 commented on May 30, 2024

It's certainly not difficult for me to add them(already added), but it would be much more interesting for me if you could run them on your machine and share the results.

from lgenerics.

avk959 avatar avk959 commented on May 30, 2024

Currently when inserting a list of name/value pairs, TJsonConf will raise an exception when trying to insert a duplicate name. Maybe it makes sense to introduce an option such that when it is activated, the value will simply be overwritten?

from lgenerics.

Alexey-T avatar Alexey-T commented on May 30, 2024

What api are u talking about, SetValue with the existing key? What insert ?

from lgenerics.

Alexey-T avatar Alexey-T commented on May 30, 2024

If u are talking about SetValue with some conflict of keys-- pls test it on Fpjson and mimic its behavior.

from lgenerics.

avk959 avatar avk959 commented on May 30, 2024

I meant this method:
procedure SetValue (const aPath: string; aValue: TStrings; AsObject: Boolean = False);
when AsObject set to True.

from lgenerics.

Alexey-T avatar Alexey-T commented on May 30, 2024

It should overwrite old value.

from lgenerics.

avk959 avatar avk959 commented on May 30, 2024

TJsonConfig currently raises an exception in this situation.
The default behavior of TJsonConf will be the same, but I added an option that when activated, the values of the encountered duplicate names will be silently overwritten.

from lgenerics.

Alexey-T avatar Alexey-T commented on May 30, 2024

Good, thanks! I am busy now so will test it later. good job.

from lgenerics.

avk959 avatar avk959 commented on May 30, 2024

Hmm, not even half a year has passed.

from lgenerics.

Related Issues (11)

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.