Stream JSON data and pivot it into a lookup format i.e. associative array