since Delphi XE6, TSQLRecord will recognize record published properties - see ticket [b653e5f4ca] - so you can define e.g. TGUID properties directly, which will be stored as JSON string