hunt ~v1.1.x (2025-02-10T00:10:27.0144053)
Dub
Repo
JsonHelper.getAs
hunt
text
JsonHelper
JsonHelper
Undocumented in source. Be warned that the author may not have intended to support it.
T
getAs
(const(JSONValue) json, T defaultValue)
T
getAs
(const(JSONValue) json, T defaultValue)
T
getAs
(const(JSONValue) json)
T
getAs
(const(JSONValue) json, T defaultValue)
T
getAs
(const(JSONValue) json)
T
getAs
(const(JSONValue) json, T defaultValue)
T
getAs
(const(JSONValue) json, T defaultValue)
class
JsonHelper
static
T
getAs
(
T
:
U
[]
bool
canThrow
= false
U
)
(
auto
ref
const
(
JSONValue
)
json
,
T
defaultValue
=
T.init
)
if
(
isArray
!
T
&&
!
isSomeString
!
T
&&
!
is
(
T
:
string
)
&&
!
is
(
T
:
wstring
)
&&
!
is
(
T
:
dstring
)
)
T
getAs
(const(JSONValue) json, T defaultValue)
Meta
Source
See Implementation
hunt
text
JsonHelper
JsonHelper
static functions
getAs
getItemAs
handleException
toJson