properly formed json ( i think ) output. need to test on  mongo