Rewrite jArray to Array