Skip to content

Instantly share code, notes, and snippets.

View rme-dm's full-sized avatar

Ryan Emmons rme-dm

View GitHub Profile
@rme-dm
rme-dm / parse.nim
Created November 15, 2021 22:53
Parse KC array of json objects, then iterate through objects to pull values. Uncomment lines and set desired columns in the if clause, then pipe out to generate CSV file.
import json, strutils
## Source file should be valid array of JSON objects
let
jArray = readFile("source.json")
a = parseJson(jArray)
#echo "First Name, Last Name, Email Address" ## For CSV generation
for i in a:

Keybase proof

I hereby claim:

  • I am rme-dm on github.
  • I am remmons (https://keybase.io/remmons) on keybase.
  • I have a public key ASB7O4ceIba0x0jB6jeOK1aXeViyzboe7VzQMuEhtlI0JQo

To claim this, I am signing this object: