create a map that stores slugs as keys and json nodes as values