How to determine the null value in JSON? I have tried many methods, but none of them worked

in template code is as follows

<<if [d.somatic_cell_list != null]>>
true
<<else>>
false
<</if>>

json is like

 "somatic_cell_list": null,

and try run ,find <<if [d.somatic_cell_list != null]>> is do not work.

How should I deal with the situation where the value is null?

thank you!

@zongsan

Please try using <<if [d.somatic_cell_list.any()]>> instead. If that does not help, please provide a template, data, and code reproducing the issue for further analysis.

thank you!

its work。:v: