cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Add null value in JSON

TS_9588135
7-Bedrock

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

1 ACCEPTED SOLUTION

Accepted Solutions

Apparently, it's a bug in 8.5

View solution in original post

3 REPLIES 3

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

 

Apparently, it's a bug in 8.5

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

Top Tags