Quick answer

Empty string "" and null are both valid in JSON but mean different things.

JSON Empty String vs Null

Empty string "" and null are both valid in JSON but mean different things. Using the wrong one can cause validation or logic errors.

Common causes

How to fix

FAQ

Is empty string valid JSON?
Yes. "" is a valid JSON value.
When should I use null vs empty string?
Use null for missing/unknown; use "" when the value is explicitly an empty string.

Fix it now

Try in validator (prefill this example)

Related

All tools · Canonical