Normalize returned JSON