Generates a menu in the form of DOM fragment based on a JSON input.