Updated to use ne JSON library. Also checks for CoE status.