wwJsonSerializer::CreateSerializer

Allows for customization of the of the wwJsonSerializer used to serialize and deserialize JSON messages for the request.

You can override this method in a subclass or you can explicitly call the method and get back an instance to customize before calling CallMethod().

The simplest is simply getting the default serializer and customizing it:

*** Optional - get serializer to override settings
loSerializer = loProxy.CreateSerializer()

*** Add proper property names 
loSerializer.PropertyNameOverrides = "firstName,lastName"
loSerializer.AssumeUtcDates = .F.

Timing of assigning a custom Serializer

To provide a custom serializer, make sure you call this method before a method is called.

o.CreateSerializer(loSerializer)

Return Value

wwJsonSerializer instance

Parameters

loSerializer
Optional - a preconfigured instance of a Json serializer


See also:

Class MarkdownParser

© West Wind Technologies, 1996-2018 • Updated: 03/05/18
Comment or report problem with topic