I receive a JSON Array from our Client which properties are empty:
[
{},{},{},{},{}
]
Normally it looks like this e.g:
[
{"Name": "foo", "Text": "Costumer"},
{"Name": "foo", "Text": "Employer"},
{"Name": "foo", "Text": "Costumer"},
{"Name": "foo", "Text": "Emplopyer"},
{"Name": "foo", "Text": "Employer"}
]
As far as my teacher said there is 2 possible ways to check for those empty properties:
regexp package && reflect package
Which should I use for performance?
And please explain why u would choose that package over the other