toggle menu
foundry
jvm
switch theme
search in API
foundry-common
/
foundry.common.json
/
JsonTools
Json
Tools
object
JsonTools
(
source
)
Members
Properties
MOSHI
Link copied to clipboard
val
MOSHI
:
Moshi
Functions
from
Json
Link copied to clipboard
inline
fun
<
T
:
Any
>
fromJson
(
file
:
File
)
:
T
inline
fun
<
T
:
Any
>
fromJson
(
path
:
Path
)
:
T
inline
fun
<
T
:
Any
>
fromJson
(
source
:
BufferedSource
)
:
T
from
Json
Value
Link copied to clipboard
inline
fun
<
T
:
Any
>
fromJsonValue
(
value
:
Any
)
:
T
read
Json
Value
Map
Link copied to clipboard
fun
Buffer
.
readJsonValueMap
(
)
:
Map
<
String
,
Any
>
to
Json
Link copied to clipboard
inline
fun
<
T
:
Any
>
toJson
(
value
:
T
?
,
prettyPrint
:
Boolean
=
false
)
:
String
inline
fun
<
T
:
Any
>
toJson
(
file
:
File
,
value
:
T
?
,
prettyPrint
:
Boolean
=
false
)
inline
fun
<
T
:
Any
>
toJson
(
path
:
Path
,
value
:
T
?
,
prettyPrint
:
Boolean
=
false
)
inline
fun
<
T
:
Any
>
toJson
(
sink
:
BufferedSink
,
value
:
T
?
,
prettyPrint
:
Boolean
=
false
)
to
Json
Buffer
Link copied to clipboard
inline
fun
<
T
:
Any
>
toJsonBuffer
(
value
:
T
?
,
prettyPrint
:
Boolean
=
false
)
:
Buffer