If you are writing/reading JSON for Web API Publishing.....

This forum allows developers to post programming tips and coding techniques that may be useful to other Visual LANSA developers. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
tsupartono
Posts: 68
Joined: Wed Jan 25, 2017 11:12 am

If you are writing/reading JSON for Web API Publishing.....

Post by tsupartono » Wed Oct 24, 2018 12:47 pm

When writing/reading JSON in your server module for the purpose of publishing web services, make sure that you use the VL-native PRIM_JsonWriter and PRIM_JsonReader, instead of the XPRIM_JsonWriter and XPRIM_JsonReader (from the RDML Extended Library).

As PRIM_JsonWriter and PRIM_JsonReader are native VL components, you will get considerable performance improvement over XPRIM_JsonWriter.

The Extended Library's XPRIM_JsonReader and XPRIM_JsonWriter should be used only when you are consuming web services (ie using XPRIM_HttpRequest).

Post Reply