Typescript Get Object From Json Array Length In Js