toggle menu
hexagon
3.7.2
jvm
switch theme
search in API
serialization_dsl_json
/
com.hexagonkt.serialization.dsl.json
/
JsonFormat
Json
Format
open
class
JsonFormat
(
prettyPrint
:
Boolean
=
true
)
:
SerializationFormat
Inheritors
Json
Members
Constructors
Json
Format
Link copied to clipboard
constructor
(
prettyPrint
:
Boolean
=
true
)
Properties
media
Type
Link copied to clipboard
open
override
val
mediaType
:
MediaType
text
Format
Link copied to clipboard
open
override
val
textFormat
:
Boolean
=
true
Functions
parse
Link copied to clipboard
open
fun
parse
(
input
:
String
)
:
Any
open
override
fun
parse
(
input
:
InputStream
)
:
Any
serialize
Link copied to clipboard
open
fun
serialize
(
instance
:
Any
)
:
String
open
override
fun
serialize
(
instance
:
Any
,
output
:
OutputStream
)
serialize
Bytes
Link copied to clipboard
open
fun
serializeBytes
(
instance
:
Any
)
:
ByteArray