function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Christopher Hudson 1Christopher Hudson 1 

Null text fields dropped from JSON

Hi All,
     We are having an issue that any text area that is not being populated with a value is being dropped from the JSON.  Normally this would not be an issue but some of these fields are synced to SQL servers that are accessed by other web applications.  Has anyone else experienced this and what was the best resolution you found?
Abdul KhatriAbdul Khatri
Can you please provide more details with the sample examples to understand more? 
Christopher Hudson 1Christopher Hudson 1
This is one of the objects we are experiencing this on.
Object Fields
This is the lightning component where we are making the change.
LWC
If there is any text in the Asset Handling Note field it is included in the JSON but if it is blank the entire field is removed from the JSON.  I need to find a way (preferably without a lot of additional code) to get the blank field to be included as we have many more where this scenario will be repeatable.