coders#2
backend developer
backend developer
frontend developer
Support at least one of XML or JSON:
Ensure Error Handling and Validation:
Provide Flexibility and Customization:
Map the JSON structure to final tables
Ability to handle up to 3 levels of nesting
We have come up with 2 approaches to implement generic parser for JSON
Purpose of using 2 different ways is to showcase different algorithms for parsing and compare their run time.
These 2 approaches also differ in the way input is given to the application.
Approach I
Using Native JS Library
Clients : SBI, Kotak, Canara
End-User: Sales team, Engineering team
APIs introduced:
/register
input format:
identifier: string
jsonFile: jsonFile
/parse
input format:
identifier: string
jsonFile: json file
Flow:
Register
Parse
Approach II
Techstack : Nodejs, MongoDB
API: http://localhost:5002/api/parse
Input : can be any JSON with name of source
Output:
success : parsed JSON
Error: Validation Errors/parsing Errors
Implementation Idea:
ajv
librarysuccess
convert-json-schema-to-mongoose
.