Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 09/03/25 in all areas

  1. Vincent Parrett

    New YAML Parser Library - VSoft.YAML

    Hi All I have released a new YAML Parser/Emitter library for Delphi XE2 or later. It is pure delphi code, tested with Win32 and Win64 but it should work for other platforms too (no winapi dependencies). Supports YAML 1.1 (partially) & 1.2 JSONPath queries with filter expressions Multiple Document streams. https://github.com/VSoftTechnologies/VSoft.YAML
  2. Hi @mvanrijnen, there is a JSONNameAttribute you can use to tweak serialization (and deserialization). Just decorate your field with JSONName('') to skip serialization/deserialization. If you need some logic, you can add a special method to your record type and it will be fired by the serialization/deserialization mechanism. The method should match this signature: TMyRecord.ToJSONFilter(const AMember: TRttiMember; const AObj: TJSONObject): Boolean; Just return False and implement your logic in the ToJSONFilter method. It is then up to you to add or not the value of AMember to the AObj that is being serialized. Sincerely, Andrea
  3. Stefan Glienke

    New YAML Parser Library - VSoft.YAML

    You are missing passing TFormatSettings to the StrTo... functions that you are calling - that makes it fail on systems that use a comma as a decimal separator, for example.
  4. Lars Fosdal

    Need help investigating an app crash

    As mentioned by @Vincent Parrett - Proper stack traces with EurekaLog, MadExcept or similar, are invaluable in such cases. The cost of buying one of these tools is quickly dwarfed by the cost of the time spent on researching issues without proper insights from said tools.
×