feat(jsonFilter): add optional arg to define custom indentation

also change toJson function to accomodate passing in of number of spaces
this line isn't needed --- `JSON.stringify` will convert numbers into the right number of spaces on its own.