NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Computer Fundamentals
Before you can hack, defend, or analyze malware, you must understand the machines you are working with. The Computer Fun
ViewRouting & Switching Fundamentals
Build a rock-solid foundation in modern network infrastructure. This learning path takes you deep into the mechanics of
ViewNetwork Design and Architecture
Elevate your career from network technician to strategic network architect. This advanced learning path takes you beyond
ViewWAN, VPN and Cloud Networking
This comprehensive learning path transitions from local area networks to the complex world of wide-area connectivity, se
ViewNetwork Security and Hardening
This comprehensive learning path dives deep into the principles and practices of securing network infrastructure. You wi
ViewNetwork Automation & Scripting
This comprehensive learning path dives deep into the principles and practices of automating network infrastructure. You
ViewPreview · 32 min
How to read JSON and CSV without crashing or losing rows: missing keys, text that looks like numbers, commas inside quotes, joining two sources, and writing output that other people can open.
The queue export that Tomas pulls from the SIEM every morning is a CSV file. The intel cache that the enrichment service writes is a JSON file. Mina wants one table with the alert id, its severity, the first address in the alert text and the reputation score, so that the afternoon shift can sort by it. Neither file is hard to read. The trouble is in what each format promises and what it does not.
JSON promises structure but not completeness: a record can have a key, lack it, or hold null, and each of those means something different. CSV promises completeness of columns but not types: every cell is text, including the ones that look like numbers, and a cell can be empty. Both formats arrive in the SOC from systems you do not control, so a script that handles them has to survive the awkward record, not only the typical one. This lesson covers the awkward record in each format, then builds the joined table.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign in