Updated to use ne JSON library.