Handling JSON key with empty value as present