Meme transcription: Panel 1. Two images of JSON, one is the empty object, one is an object in which the key name maps to the value null. Caption: “Corporate needs you to find the difference between this picture and this picture”

Panel 2. The Java backend dev answers, “They’re the same picture.”

  • MostlyBlindGamerA
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 days ago

    I think we’re fully in agreement here: if the API doesn’t specify how to handle null values, that omission means they’re perfectly valid and expected.

    Imagine a delivery company’s van exploding if somebody attempts to ship an empty box. That would be a very poorly built van.