Changed the JSON library being used in the encode.