Skip to main content

In the source json file values.available_sf was null. i created a json templater

and 

 

assign this null value to BuildingSqFtTotal jason object.

 

but after templater I got this "BuildingSqFtTotal" : ""

I need "BuildingSqFtTotal" : null

 

@david_r​ or anyone can you pls help

 

"BuildingSqFtTotal": fme:get-attribute("values.available_sf"),

 

Have you tried using a NullAttributeMapper to make sure that values.available_sf contains a <null> value and not an empty string?


Have you tried using a NullAttributeMapper to make sure that values.available_sf contains a <null> value and not an empty string?

yes i tried, but not successful. any attribute if it is null, the template makes it as ""(double quote)


@david_r​ David, here is my , template fme file


I think you need to make the attribute missing if you want to see null (no quotes) in the JSON output


I think you need to make the attribute missing if you want to see null (no quotes) in the JSON output

yes, this is worked 🙂 Thanks. But totally confused.


Reply