json: reject nonempty Any objects without @type (#334)