[M3devel] Information about record/object field name.

Darko darko at darko.org
Mon Jan 28 21:16:32 CET 2013


Another way to do it is to parse the .M3WEB file. See the Load procedure in the attached module for clues (unfortunately it has some dependencies into my code but they're fairly obvious). It takes as a parameter the .M3WEB file from the build directory.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TypeInfo.i3
Type: application/octet-stream
Size: 4266 bytes
Desc: not available
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20130128/2eb3a1f7/attachment-0002.obj>
-------------- next part --------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TypeInfo.m3
Type: application/octet-stream
Size: 17169 bytes
Desc: not available
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20130128/2eb3a1f7/attachment-0003.obj>
-------------- next part --------------

On Jan 28, 2013, at 9:30 AM, Alexey Veselovsky wrote:

> Hello.
> 
> It is possible to retrieve field names for given Record or Object type?
> 
> I need it for json serializer.
> 
> Also this information useful for creating field-order independent serializer.
> 
> Thanks, Alexey.



More information about the M3devel mailing list