decode json as array.