use Apple JSON library if available