Uses new JSON library.