Some basic json output/input methods