Javascript Split Json Into Two Arrays Gives Undefined Keys Values

Javascript Split Json Into Two Arrays Gives Undefined Keys Values