Question
C# Help! Implement a solution which will perform three primary functions: Retrieve a JSON file from a remote URL. Your solutions should pull this from
C# Help!
Implement a solution which will perform three primary functions:
-
Retrieve a JSON file from a remote URL. Your solutions should pull this from a settings file (app.config, web.config. etc).
-
Determine if a provided string is a palindrome. Alphanumeric chars will be considered when evaluating whether or not the string is a palindrome.
-
Parse the retrieved JSON file, and pass each element in the "strings" array, into the function in step #2. You should print out the string and result.
The JSON file will contain the string to test, and its status as a palindrome. The file will be in this format:
{ "strings": [{ "str": "mom", "result": "true" }, { "str": "Taco Cat", "result": "true" }, { "str": "Kent State", "result": "false" }] }
Your solution is expected to handle reasonable exceptions (unanavailable JSON file, improperly formatted file, etc). In the case of an exception, simply outputting the exception message, or comparable message, will expected.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started