Closed Alexey-T closed 2 years ago
Look in the example/json folder.
maybe also put the resulting .txt logs there, so I don't need to run them?
I've added a typical parsing benchmark result(in parse_bench2), and the rest have already been posted on the forum.
Only on forum? why not to put to GitHub as well, so people will find them.
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.
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?
What api are u talking about, SetValue with the existing key? What insert ?
If u are talking about SetValue with some conflict of keys-- pls test it on Fpjson and mimic its behavior.
I meant this method:
procedure SetValue (const aPath: string; aValue: TStrings; AsObject: Boolean = False);
when AsObject set to True.
It should overwrite old value.
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.
Good, thanks! I am busy now so will test it later. good job.
Hmm, not even half a year has passed.
Ca you add such .txt files to repo? I am interested in JSON only-- but other tests are good as well...