Use custom port and tag from custom.json correctly (regression)
Ignore line breaks on the end of line
Report error for invalid JSONs