JSON text and values are empty if their length is <= 0

If I’m reading the code correctly, it should raise empty when the `length <= 0`.