Class PyishObjectMapper
- java.lang.Object
-
- com.hubspot.jinjava.objects.serialization.PyishObjectMapper
-
@Beta public class PyishObjectMapper extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PyishObjectMapper.NullKeySerializer
-
Field Summary
Fields Modifier and Type Field Description static String
ALLOW_SNAKE_CASE_ATTRIBUTE
static com.fasterxml.jackson.databind.ObjectWriter
PYISH_OBJECT_WRITER
static com.fasterxml.jackson.databind.ObjectWriter
SNAKE_CASE_PYISH_OBJECT_WRITER
-
Constructor Summary
Constructors Constructor Description PyishObjectMapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getAsPyishString(Object val)
static String
getAsPyishStringOrThrow(Object val)
static String
getAsPyishStringOrThrow(Object val, boolean forOutput)
static String
getAsUnquotedPyishString(Object val)
-
-
-
Field Detail
-
PYISH_OBJECT_WRITER
public static final com.fasterxml.jackson.databind.ObjectWriter PYISH_OBJECT_WRITER
-
SNAKE_CASE_PYISH_OBJECT_WRITER
public static final com.fasterxml.jackson.databind.ObjectWriter SNAKE_CASE_PYISH_OBJECT_WRITER
-
ALLOW_SNAKE_CASE_ATTRIBUTE
public static final String ALLOW_SNAKE_CASE_ATTRIBUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAsPyishStringOrThrow
public static String getAsPyishStringOrThrow(Object val) throws IOException
- Throws:
IOException
-
getAsPyishStringOrThrow
public static String getAsPyishStringOrThrow(Object val, boolean forOutput) throws IOException
- Throws:
IOException
-
-