GithubHelp home page GithubHelp logo

jsonparser-cdp-project's Introduction

JSONParser-CDP-Project

JSONParser CDP Project FMI

Here is a link to the github page of the project: https://github.com/NikolaDrag/JSONParser-CDP-Project/tree/main. When you start the program you will be prompted to input a JSON text. Input a text that you want to be parsed.

Then you can enter the following commands to perform various tasks:

  1. Print/print -> print out the json in readable format to the console.
  2. Save to file/save to file -> save the json input in json format in a seperate file. Follow the prompted instructions.
  3. Find/find -> find all the bindings to a key and print them out or save them in a file.
  4. Delete/delete/Delete on path/delete on path -> enter a path and delete the element. If path is empty or incorrect you will get an invalid path message.
  5. Change/change/Change element/change element -> enter a path and change the value of the element corresponding to a key or to an array index.
  6. Save path/save path/Save on path/ save on path -> enter a filename and a path after and you can extract the element value to the desired file.
  7. Insert/insert -> insert a element at a position provided a path.

We have the following classes: JsonParser and JsonValue. The main function is the console interface where we use the features of those classes. The .txt files testInputX, where X is in the range [1,2,3,4], we have test inputs which we read and we can test in the unitTests.cpp. CommandToCompileTest.txt is the command needed to compile the unitTests.cpp into an .exe in VSCode. TestJson1 and TestsJson2 are files which were created using the Save to file features of the project.

jsonparser-cdp-project's People

Contributors

nikoladrag avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.