mgirlich/jsontools

How to handle empty strings "" ?

Opened this issue · 2 comments

Are there scenarios when one might encounter empty strings "" when dealing with JSON?
If yes, then how should they be handled? Currently, functions error as is seen as invalid JSON but maybe there are scenarios where this is annoying.

Do you have an example that you've looked at? I'm happy to give it some thought but would like to make sure I'm answering the same question.

I am not quite sure how empty strings came to my mind. Probably just when I was dealing with edge cases in the tests for json2(). Currently, I cannot really see any scenario where they might turn unexpectedly...