Class StandardJavaScriptSerializer

  • All Implemented Interfaces:
    IStandardJavaScriptSerializer

    public final class StandardJavaScriptSerializer
    extends 
    implements IStandardJavaScriptSerializer

    Default implementation of the IStandardJavaScriptSerializer.

    This implementation will delegate serialization to the if it is found in the classpath. If not, it will default to a custom implementation that produces similar results (but is less flexible).

    If a Thymeleaf application uses JavaScript template processing in a significant amount of templates or situations, the use of Jackson (2.6+) is recommended.

    Note that, even if Jackson is present in the classpath, its usage can be prevented by means of the useJacksonIfAvailable constructor flag.

    Since:
    3.0.0
    Author:
    Daniel Fernández
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void  object,  writer)  
      • Methods inherited from class java.lang.

        , , , , , , , , , ,
    • Constructor Detail

      • StandardJavaScriptSerializer

        public StandardJavaScriptSerializer​(boolean useJacksonIfAvailable)