-
David Keith replied to the topic How to edit JSON packet? in the forum kbmMW 6 years, 7 months ago
<span style=”font-size: xx-small;”><span style=”font-family: Arial;”>Thanks Kim! I look forward to the new capabilities!</span></span>
-
David Keith replied to the topic How to edit JSON packet? in the forum kbmMW 6 years, 7 months ago
and the reason is…. the JSON /Date(1234567891012)/ is in milliseconds, not seconds. So the result that is returned from calling System.DateUtils.UnixToDateTime should be divided by 1000.
-
David Keith replied to the topic How to edit JSON packet? in the forum kbmMW 6 years, 7 months ago
Okay it looks like this is a Unix time epoch. I used System.DateUtils.UnixToDateTime to convert it. Unfortunately the conversion produces the wrong date with a year of 52166… probably an issue at the source.
-
David Keith replied to the topic How to edit JSON packet? in the forum kbmMW 6 years, 7 months ago
Thanks for the response Kim.
Just out of curiosity, does your JSON processor know anything about this date format?:
“Expired”:”/Date(1584031516248)/”
Is this a “native” JSON date time type that you know how to process?
Thanks again.
-
David Keith replied to the topic How to edit JSON packet? in the forum kbmMW 6 years, 7 months ago
Never mind, I think I have this figured out. Very verbose code requirements.
json := TkbmMWJSONObject(stream.LoadFromUTF16String(ajsontemplatestring)
jsonBase := TkbmMWJSONObject(json.PropertyValue[0]);
TkbmMWJSONNative(jsonBase.PropertyValueByName[‘origin’]).AsString := origin;
jsonProcesses :=…[Read more]
-
David Keith replied to the topic How to edit JSON packet? in the forum kbmMW 6 years, 7 months ago
I tried to clean this up a bit but it didn’t post for some reason.
Among other things, please remove the line that reads
‘contrast”‘ +’
from the JSON packet.
-
David Keith started the topic How to edit JSON packet? in the forum kbmMW 6 years, 7 months ago
Hi Kim!
I have previously used TkbmMWJSONStreamer and TkbmMWJSONObject to read an inbound JSON packet and select values from the packet, worked well.
Now I’m trying to :
1) Load a predefined JSON template
2) Edit the values in name value pairs in the JSON template
I looked at your ObjectNotation demo but could not figure out how to do this.…[Read more]
-
David Keith replied to the topic kbmMemTable data persistence challenges in the forum kbmMemTable 7 years, 1 month ago
Okay so I changed my streamFormat assignment from PersistentFormat to the AllDataFormat; turned off persistence/set Persistent := False;
In saving with my streamFormat each time a transaction occurs, I get an entire new copy of the table structure AND data appended to the end of the storage file.
Should I use… two streamFormats? One for…[Read more]
-
David Keith replied to the topic kbmMemTable data persistence challenges in the forum kbmMemTable 7 years, 2 months ago
Thank you!
-
David Keith replied to the topic kbmMemTable data persistence challenges in the forum kbmMemTable 7 years, 2 months ago
Can someone please approve my license request for kbmMemTable? I can’t compile kbmMW without it and I forgot to request that license approval when I requested the license approval for kbmMW.
Thanks.
-
David Keith replied to the topic kbmMemTable data persistence challenges in the forum kbmMemTable 7 years, 2 months ago
Thank you! I’ll take a look at this and see if this will fit the bill.
Thanks again!
-
David Keith started the topic kbmMemTable data persistence challenges in the forum kbmMemTable 7 years, 2 months ago
Hi Kim!
I’ve been trying to figure out what is required to persist the data that I store in a memtable, as well as being able to load the data properly as needed.
I’ve already created a product that is in production, but it doesn’t consistently save data entries to disk using the persistent data method.
My goals for this project going forward…[Read more]
-
David Keith replied to the topic Error parsing JSON data packet in the forum kbmMW 7 years, 5 months ago
I tried this with the objectNotation demo. I pasted in the JSON packet. I hit the ‘Parse’ button. I get an access violation.
Delphi 10.3 Enterprise
kbmMW 5.06.20
-
David Keith started the topic Error parsing JSON data packet in the forum kbmMW 7 years, 5 months ago
Hi Kim!
In trying to parse the JSON packet that comes back from this test URL:
014032%3D%7D013032%26%2C1000000000000XYZ12″>https://accessgudid.nlm.nih.gov/api/v2/devices/lookup.json?udi=%3D%2F08717648200274%3D%2C000025%3DA99971312345600%3D>014032%3D%7D013032%26%2C1000000000000XYZ123
…and using this source code to parse it:
procedure…[Read more]

It has been approved and is ready for download.