fixes #24 and adds json pretty printing libs