LineGenerationJSON can now read BOM from the input