How to convert one record into json

Assignment Help DOT NET Programming
Reference no: EM131258297

C# Project

Instructions:

Data and layout file structure

Inside each of the data files is 102 lines of information. The first and last lines are just a header and footer that don't contain a relevant record. Each of the other 100 lines contains one record each. These records each have 150 fields separated by | . The final field is just a field indicating the end of a record.

The data layout file has one field name per line corresponding to each of the 150 fields that each record in the data files have. These field names and the fields in the data files are all in the same order.

For this assignment you can have all of your code in the Program class if you choose to.

You will need to give the user the choice of reading in all of DataFile1, 2, or 3. The data in the chosen file should be read in and converted to the JSON format. It's important to note that the data files only have the values of each field, the DataFieldsLayout file contains the name of each field. The JSON formatted data then needs to be written out to a new file.

Make sure your project meets the following requirements:

File I/O Reading

? The field names are read in from the DataFieldsLayout file and stored in a variable.
? The data fields are able to be read in from at least one of the DataFile files and stored in a variable.

File I/O Writing

? All relevant data from a DataFile is written out to a single file.

JSON

? Records are converted to valid JSON. User Input
? The user is able to select which of the three data files they would like to process.

Extra Information Tips and hints:

? Each line of the data files is a separate record made up of key:value pairs.

? Figuring out how to convert one record into JSON and then repeating that process for each record will be easier than trying to just lump convert the whole data set.

? Test your JSON using the JSON validator found here.

? This is an array of data, make sure that your output JSON file accurately represents this fact. The data should not just be a bunch of JSON objects in a file with no structure.

Go back through your code and check for the following:

? All variables and methods are named appropriately.
? Member variables should have either protected or private access.
? Anytime the user is asked for input the expected input is made clear to the user.
? Any information being output to the user should be clear and concise.
? Make sure nothing accesses an object that doesn't exist.

Reference no: EM131258297

Questions Cloud

Couch division sales and chair division sales : What is the ROI for the couch division (rounded to the nearest tenth of a percent). The following information is for two divisions at Wiley Company. Couch Division Sales and Chair Division Sales.? $6,000,000 operating income ? $560,000 operating prof..
Transformation to green energy to occur : Can a green energy eventually make up 100 percent of many organization's energy usage? what obstacles or challenges do you think will need to be surmounted for this transformation to green energy to occur?
Explain the concept of cross docking : What is random stocking? What information is necessary for random stocking to work?. Explain the concept of cross-docking ?
Cqi concepts in your place of employment : Create a 5-8 slide Power Point presentation that describes how you could use CQI Concepts in your place of employment to improve quality. The presentation should be professional and have a cover page and at least one reference. Use the speaker no..
How to convert one record into json : Figuring out how to convert one record into JSON and then repeating that process for each record will be easier than trying to just lump convert the whole data set.
Determent the time required for the work cycle : Assume that al1ll1ove~are made to minimize the total cycle time If loading and unloading the plate take 20 sec (total handling time. determent the time required for the work cycle.
Determine its ending inventory and cost of goods sold : LB Enterprises uses a job-order costing system to determine its ending inventory and cost of goods sold. LB's accountant estimated the manufacturing overhead for 1999 to be $595,200. How much material was purchased in March? Assume the company alloca..
Analyze the risks that can occur if any of the developmental : Determine the steps in the development of an effective Entity Relationship Model (ERM) Diagram and determine the possible iterative steps / factors that one must consider in this process with consideration of the HR core functions and responsibili..
Prepare a persuasive proposal report : Prepare a Persuasive Proposal Report and a Power Point Presentation on the following You're company specializes in providing state of the art computer based networking systems to other companies as a way of keeping them in touch with modern technol..

Reviews

Write a Review

DOT NET Programming Questions & Answers

  Develop web services based application

Develop and test a Web services based application that meets the requirements applying SOA design principles.

  Design style elements in asp

Add drop down lists for modifying the different style elements for the label element that displays the time

  Create a shopping cart in asp

The users will use a browser to access the on-line store. The web server software for the production web server is Windows 2003 Server /IIS6.

  Inventory management system in c# application

Inventory management system in c# application

  Using .net resources to teach .net

This project will use the .NET framework to produce a set of materials to demonstrate the fundamental principles of .NET. Ideally it should demonstrate some of the principles of the framework e.g. interoperability.

  Prepare a marymount faculty site

Prepare a Marymount faculty site

  Blinky lights

Analysis proving that your code blinks the LEDs at the specified rates.

  Prepare a web application

Prepare a web application that will be used to keep track of patients registering in a hospital.

  Implementing the insurance management system

Implementing the Insurance Management System and implementation of Components as Web Services.

  Describe the characteristics of visual studio 2005

Describe the characteristics of Visual Studio 2005 Visual Studio.Net is a suite of products that includes 4 main languages. Name these languages and outline their use in industries

  What is a connectionstring

What is a ConnectionString. Give a suitable example to illustrate the various part of a ConnectionString

  Prepare a web application for internet service provider

Prepare a Web application and write the code also event planning document base. This web application allows the user to sign up for an Internet service provider for home connectivity.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd