Package org.atmosphere.sockjs
Class JsonCodec
- java.lang.Object
-
- org.atmosphere.sockjs.JsonCodec
-
public class JsonCodec extends java.lang.ObjectSockJS requires a special JSON codec - it requires that many other characters, over and above what is required by the JSON spec are escaped. To satisfy this we escape any character that escapable with short escapes and any other non ASCII character we unicode escape it- Author:
- Tim Fox
-
-
Constructor Summary
Constructors Constructor Description JsonCodec()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.ObjectdecodeValue(java.lang.String str, java.lang.Class<?> clazz)static java.lang.Stringencode(java.lang.Object obj)
-