You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Frictionless to process CSV files, and we encountered an issue where certain fields with numeric-like values containing hyphens (e.g., 96777-8) are incorrectly split into arrays when converted to JSON output.
For example, a CSV field with the value 96777-8 gets represented in the JSON output as: "SCREENING_CODE": [ 96777, 8 ]
Expected behavior: The value should remain as is in the JSON output:
"SCREENING_CODE": "96777-8"
Steps to Reproduce:
Create a CSV file (example.csv) with the following content:
SCREENING_CODE
96777-8
Use the extract or validate method to process the CSV:
from frictionless import extract
rows = extract('example.csv')
print(rows)
Observe the resulting JSON output:
[
{
"SCREENING_CODE": [
96777,
8
]
}
]
Expected Behavior:
The output should preserve the original value as a string:
[
{
"SCREENING_CODE": "96777-8"
}
]
The text was updated successfully, but these errors were encountered:
We are using Frictionless to process CSV files, and we encountered an issue where certain fields with numeric-like values containing hyphens (e.g., 96777-8) are incorrectly split into arrays when converted to JSON output.
For example, a CSV field with the value 96777-8 gets represented in the JSON output as:
"SCREENING_CODE": [ 96777, 8 ]
Expected behavior: The value should remain as is in the JSON output:
"SCREENING_CODE": "96777-8"
Steps to Reproduce:
Create a CSV file (example.csv) with the following content:
Use the extract or validate method to process the CSV:
Observe the resulting JSON output:
Expected Behavior:
The output should preserve the original value as a string:
The text was updated successfully, but these errors were encountered: