better json formatting
creating a basic spark lib, mostly stolen from the spark cli tool