Decode json before parsing.