Add basic json ouptut functionality