Change json to array