I'm building my first API which outputs in JSON, and was wondering: If one of the parameters is empty, is it best to still include that parameter name with an empty value, or not include it at all? For example, if a certain product has batteries it would normally output
"batteries": [
            {
                "device": "Vehicle",
                "number": "4",
                "type": "AA",
                "included": "Not Included"
            },
            {
                "device": "Remote",
                "number": "2",
                "type": "AAA",
                "included": "Not Included"
            }
        ],
If there are no remote batteries, should I just not include that second section? What if there aren't batteries at all, should I remove the whole battery node?
 
     
    