Early attempt to use json library to encode information as json.