Strip trailing comma
Improve network parsing