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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Add null value in JSON

TS_9588135
12-Amethyst

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

ACCEPTED SOLUTION

Accepted Solutions
TS_9588135
12-Amethyst
(To:mnarang)

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

 

TS_9588135
12-Amethyst
(To:mnarang)

Apparently, it's a bug in 8.5

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

Announcements


Top Tags