Fix for #56

When serializing an array with one item to JSON, it should be serialized as an array not an object.
Re: your comment about serializing empty arrays, commenting out the line 
```csharp
            if (resourceList.Count == 0) return;
```
has no effect as the JsonSerializer ignores null objects.