Quick conversion to json - doesn't actually work or anything