Integrating Algorithm with sample JSON input.