[TASK] Return empty array instead of null in jsonSerialize

10 jobs for 477-implement-rest-api-with-token-based-authentification in 6 minutes and 22 seconds (queued for 4 seconds)