stringOrNull
Helper function to safely extract a string from a JsonObject by key, returning null if the key is absent or not a string.
Return
The string value associated with the key, or null if not present or not a string.
Parameters
field
The key to look up in the JsonObject.