~basic_json() noexcept
Destroys the JSON value and frees all allocated memory.
No-throw guarantee: this member function never throws exceptions.
Linear.