Japan's economy narrowly avoided a technical recession with a modest 0.