Skip to main content
12-Amethyst
July 12, 2021
Solved

Add null value in JSON

  • July 12, 2021
  • 1 reply
  • 1524 views

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).

Best answer by TS_9588135

Apparently, it's a bug in 8.5

1 reply

5-Regular Member
July 13, 2021

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

 

TS_958813512-AmethystAuthorAnswer
12-Amethyst
July 13, 2021

Apparently, it's a bug in 8.5

5-Regular Member
July 13, 2021

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