Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
6111da8c
Commit
6111da8c
authored
May 18, 2015
by
Peter van 't Hof
Browse files
Added Some() support to anyToJson
parent
2e046f83
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/utils/ConfigUtils.scala
View file @
6111da8c
...
...
@@ -160,6 +160,7 @@ object ConfigUtils extends Logging {
any
match
{
case
j
:
Json
=>
j
case
None
=>
Json
.
jNull
case
Some
(
x
)
=>
anyToJson
(
x
)
case
m
:
Map
[
_
,
_
]
=>
mapToJson
(
m
.
map
(
m
=>
m
.
_1
.
toString
->
anyToJson
(
m
.
_2
)))
case
l
:
List
[
_
]
=>
Json
.
array
(
l
.
map
(
anyToJson
(
_
))
:
_
*
)
case
b
:
Boolean
=>
Json
.
jBool
(
b
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment