[fpc-pascal] JSON - RTTI streaming.
michael.vancanneyt at wisa.be
michael.vancanneyt at wisa.be
Thu Nov 17 09:16:31 CET 2011
On Wed, 16 Nov 2011, Stephane Carre wrote:
> Hello Michael,
> In the current stable release (fpc 2.4.4) the unit tests for fpjsonrtti fail
> to compile because unit testcomps is missing.
> I believe this is the unit with the test classes used for the destreamer
> tests.
> Where can I find this unit ?
I probably forgot to commit it. I will send it to you tonight.
Michael.
> Thanks for this !
> Regards,
> Stephane Carre
>
> On 06/01/2011 00:12, Michael Van Canneyt wrote:
>> Hello,
>>
>> For those of you that need JSON support:
>>
>> I have committed support for streaming published properties (properties for
>> which RTTI is generated) from objects to JSON and vice versa, in a unit
>> fpjsonrtti.
>>
>> Not the full streaming as implemented in the classes system is supported:
>> - No DefineProperties.
>> - No methods.
>> Although it should not be difficult to add support for this.
>>
>> In contrast, it can stream simple collections and stringlists (with ojects
>> attached) in various ways.
>> There are various events to influence the streaming process.
>> This should be more than enough to stream objects to and from a
>> web-browser.
>>
>> I have committed an example and a testsuite.
>> All this is in packages/fcl-json.
>>
>> Despite the fact that the testsuite runs OK , I'd like to ask those for
>> whom it might be useful to test the code and report any errors you find to
>> me. Suggestions for improvements are also welcome.
>>
>> Michael.
>> _______________________________________________
>> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
>> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
More information about the fpc-pascal
mailing list