Added json to array conversion