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
c4b74ae4
Commit
c4b74ae4
authored
Jan 15, 2015
by
Peter van 't Hof
Browse files
Added a null value on None
parent
5f5ec879
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/utils/ConfigUtils.scala
View file @
c4b74ae4
...
...
@@ -166,6 +166,7 @@ object ConfigUtils extends Logging {
def
anyToJson
(
any
:
Any
)
:
Json
=
{
any
match
{
case
j
:
Json
=>
j
case
None
=>
Json
.
jNull
case
m
:
Map
[
_
,
_
]
=>
mapToJson
(
m
.
map
(
m
=>
m
.
_1
.
toString
->
anyToJson
(
m
.
_2
)))
case
l
:
List
[
_
]
=>
Json
.
array
(
l
.
map
(
anyToJson
(
_
))
:
_
*
)
case
n
:
Int
=>
Json
.
jNumberOrString
(
n
)
...
...
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