json: assignment and clear method, API doc