Skip to main content
12-Amethyst
Jul 12, 2021 3:24 PM UTC
Solved

Add null value in JSON

Hi,

 

I would like to have a service with a JSON as output.

Is it possible to add a 'null' value in an array there?

E.g.

 

{ 

field1: [50],

field2: [null],

field3: [60]

}

 

(My service returns 'Error executing service. Message ::null - See Script Error Log for more details').

The null is really necessary (NaN etc. are not an option).

12-Amethyst
Jul 13, 2021 9:56 AM UTC

Apparently, it's a bug in 8.5

3 replies

5-Regular Member
Jul 13, 2021 9:55 AM UTC

I am not sure what exactly you want to achieve, I tried the same json values and it worked like this. 

mnarang_0-1626170111729.png

 

Translate
TS_958813512-AmethystAuthorAnswer
12-Amethyst
Jul 13, 2021 9:56 AM UTC

Apparently, it's a bug in 8.5

Translate
5-Regular Member
Jul 13, 2021 9:59 AM UTC

Maybe it's a bug there but I tested in 9.1.

Translate