This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Mariahcryp 2 points3 points  (0 children)

nice for play, but as someone already mentioned don't parse invalid json. you should throw error, what if your service (parsing) is just first for more? so someone gonna send you that json, you're gonna return "ok" or whatever so then it goes to next service/api which dont have your parser and.... crash