[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"howto:ndjson:android:en":3},{"resolvedFromAlias":4,"canonicalExt":5,"ext":5,"name":6,"category":7,"categoryName":8,"updatedAt":9,"os":10,"osLabel":11,"quickSolution":12,"stepByStep":13,"recommendedSoftware":15,"alternativeMethods":16,"commonIssues":17,"securityNote":42,"extensionPath":43,"extensionLabel":44,"breadcrumbs":45,"metaDescription":55},false,"ndjson","Newline-Delimited JSON (NDJSON)","data","Data","2026-06-12T08:36:32.057Z","android","Android","To open .NDJSON files on Android, open the .ndjson file in a text editor app to view it as plain text; for validation or conversion, transfer it to a desktop tool that supports newline-delimited JSON.",[14],"Open the .ndjson file in a text editor app to view it as plain text; for validation or conversion, transfer it to a desktop tool that supports newline-delimited JSON.",[],[],[18,24,30,36],{"title":19,"description":20,"steps":21},"“JSON parse error” when using a normal JSON parser","Many JSON parsers expect a single JSON document (often one object or one array). An NDJSON file contains multiple JSON texts separated by newlines, so a parser that expects one document may fail after the first line.",[22,23],"Confirm the file is NDJSON: each line should be a complete JSON value (commonly an object).","Use a reader/parser that supports NDJSON/newline-delimited JSON (line-by-line JSON streaming), or split the file by lines and parse each line separately.",{"title":25,"description":26,"steps":27},"A line isn’t valid JSON, breaking processing partway through","NDJSON requires each record to be valid JSON on a single line. If a record contains an unescaped newline inside a string or the line is truncated/corrupted, tools may fail at that line.",[28,29],"Locate the failing line number (many tools report it) and inspect that specific line in a text editor.","Fix or remove the malformed record; ensure embedded newlines in strings are properly escaped and each JSON value stays on one line.",{"title":31,"description":32,"steps":33},"The file opens as plain text, but looks “unformatted” or hard to read","NDJSON is optimized for streaming rather than human readability. Each line may be minified JSON with no indentation.",[34,35],"Use a text editor with JSON formatting features to pretty-print individual lines (record-by-record).","If you need a single JSON document, convert the lines into a JSON array with a tool/workflow that reads NDJSON and outputs standard JSON.",{"title":37,"description":38,"steps":39},"Wrong content type / MIME type expectations in an API or pipeline","NDJSON commonly uses the media type application/x-ndjson per the ndjson-spec, but this is not an IANA-registered subtype; some systems may expect something else or treat it as generic text.",[40,41],"If you control the sender, set Content-Type to application/x-ndjson when interacting with systems that recognize the ndjson-spec convention.","If you need a standardized alternative for streaming JSON, consider RFC 7464 JSON Text Sequences (application/json-seq) where supported.","NDJSON is plain text (no macros), but it is often used for large, untrusted data streams; malformed or adversarial JSON can trigger performance or memory issues in parsers—prefer streaming/line-by-line processing rather than loading the entire file at once.","/file-extension/ndjson",".NDJSON",[46,49,52],{"label":47,"to":48},"Home","/",{"label":50,"to":51},"How To","/file-extension",{"label":53,"to":54},"Open .NDJSON on Android","/how-to/open-ndjson-on-android","Learn how to open .NDJSON files on Android with step-by-step instructions, recommended software, and troubleshooting tips."]