• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PKGeorgiev/Delphi-JsonToDelphiClass: Generates Delphi Classes based on JSON stri ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

PKGeorgiev/Delphi-JsonToDelphiClass

开源软件地址:

https://github.com/PKGeorgiev/Delphi-JsonToDelphiClass

开源编程语言:

Pascal 100.0%

开源软件介绍:

Delphi-JsonToDelphiClass

Generates Delphi Classes based on JSON string. Just like XML Data Binding, but for JSON.

Main features:

  • Build entirely on the RTL (no external dependencies) so it's cross-platform;
  • Accepts any valid JSON string, no matter how complex the object is;
  • Visualizes the structure of the JSON objects in a treeview;
  • Generates complete delphi unit (declaration and implementation), based on the JSON string input;
  • Automatically prefixes reserved Delphi words with "&" (ampersand);
    • Blocks unit generation if the JSON string contains empty Array;
  • Adds support code to automatically destroy complex sub types. So you don't have to manage subobject's lifetime manually;
  • ** Uses TArray to represent lists;
  • Adds helper serialization/deserialization functions;
  • Serialization and deserialization results in the same JSON structure!
  • Automatically detects date/datetime parts and maps them to TDate/TDateTime (as long as dates are ISO8601 compliant);
  • Maps all numbers to Double;
  • Maps true/false values to Boolean;
  • Allows you to change property names (keys);
  • Allows you to change the names of the stub classes;
  • Supports JSON pretty print to format the input string;
  • Simple and responsive GUI;
  • *** Automatic check for update, based on ITask (Parallel Programming Library)!
  • It's open source! You can find the source code and binary releases on GitHub.
  • The program uses MadExcept to report unhanded exceptions;
  • If the JSON array is empty the contained type is unknown. Unit generation works only with known and supported types.

** This is because serialization of TList adds "noise" i.e. includes internal properties that did not exist in the original JSON string.

*** The releases of JsonToDelphiClass (source and binaries) are public and reside on GitHub. The update unit uses GitHub's REST API to enumerate tags/releases.

Report any problems/suggestions using GitHub's facilities.

You can find more information here: http://www.pgeorgiev.com/?p=1832




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap