Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some lines in ndjson are invalid json #1519

Open
jackliusr opened this issue Oct 8, 2024 · 0 comments
Open

Some lines in ndjson are invalid json #1519

jackliusr opened this issue Oct 8, 2024 · 0 comments
Labels

Comments

@jackliusr
Copy link

What happened?

I encountered several cases after generating data using run_synthea -p 10000000.

  • Invalid numeric literal
  • Unmatched ']' etc.
[ec2-user@ip-172-30-2-101 fhir]$ jq -c '.' < MedicationRequest.ndjson > /dev/null
jq: parse error: Unmatched ']' at line 22141561, column 812
[ec2-user@ip-172-30-2-101 fhir]$ sed -i '22141561d' MedicationRequest.ndjson
[ec2-user@ip-172-30-2-101 fhir]$ jq -c '.' < MedicationRequest.ndjson > /dev/null
jq: parse error:  Invalid numeric literal at line 22145473, column 301
[ec2-user@ip-172-30-2-101 fhir]$ sed -i '22145473d' MedicationRequest.ndjson
[ec2-user@ip-172-30-2-101 fhir]$ jq -c '.' < MedicationRequest.ndjson > /dev/null

Environment

- OS: aws linux 2023
- Java: aws jdk 17

Relevant log output

No response

@jackliusr jackliusr added the bug label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant