C++ JSON to class/struct equivalent
$250-750 USD
Paid on delivery
We need someone to write a test runner that will read some files, run it through our parser, and verify the result. The results are in JSON, but our parser produces C++ classes and structs. It's obvious how to read files and run it through our parser. The real work involves reading the JSON (e.g. with rapidjson) and converting it to our equivalent class/struct.
Here is the list of test fixtures (inputs are .js files, outputs are .json files):
[login to view URL]
In C++, instead of using JSON, we represent the data using classes/structs. It is your job to translate the JSON into tests that use the class/struct. There are 800-900 tests. We do NOT want you to manually rewrite each test in C++. We want you to automatically read the JSON and make sure our classes/structs matches the JSON output.
Some familiarity with abstract syntax trees (ASTs) and the visitor pattern may be necessary.
Here is an example of what our classes/structs look like: (from line 207 downward)
[login to view URL]
If you bid, please include an overview of your design/plan. I already know how to design this. You're being hired because I don't have time to write the code. I want to hear your design so I know I can at least trust you to do the job correctly.
Project ID: #9454223
About the project
14 freelancers are bidding on average $633 for this job
Hi, I have 11 years of experience. I have developed compiler also. I am aware of Visitor pattern and required parse tree to develop. I am keen to work on your project. Thanks, Anurag
The solution that i'm going to implement is simple: Use rapidjson to get the DOM from JSON files, and then iterate through the tree that your parser product and for each child object in the structure that your parser More