https://github.com/ramonbecker/challengeluizalabs
https://github.com/ramonbecker/challengeluizalabs
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ramonbecker/challengeluizalabs
- Owner: RamonBecker
- Created: 2022-03-05T00:19:13.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-13T00:13:13.000Z (about 4 years ago)
- Last Synced: 2025-07-29T16:34:21.480Z (10 months ago)
- Language: Java
- Size: 173 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ChallengeLuizaLabs
## :information_source: Information
Challenge for Luizalabs
The challenge is to convert a denormalized order file to json format.
For data entry, the user must enter the number of files he wants to read. After informing the number of files, you must enter the name and extension of the file that will be read.
Data entry example:
```
test.txt
file_name.extension
```
After informing the files, it will be verified if the files exist. If they exist, they will be processed and a new json file will be created.
Example output from json file:
```
[
{
"user_id": 1,
"name": "Sammie Baumbach",
"orders": [
{
"date": "2021-10-28",
"total": 2966.46,
"order_id": 2,
"products": [
{
"product_id": 2,
"value": 798.03
},
{
"product_id": 2,
"value": 601.43
},
{
"product_id": 5,
"value": 1567
}
]
}
]
```
If you want a better view of the created json file, access the following site:
```
https://jsonformatter.org/
```
You can copy and paste every line from the json file or you can import directly from the website.
## :zap: Technologies
- Java
- JSON
- JUNIT
## :memo: Developed features
- [x] Reading files
- [x] File creation
- [x] Writing to files
## :technologist: Author
By Ramon Becker 👋🏽 Get in touch!
[
](https://github.com/RamonBecker) [
](https://www.linkedin.com/in/https://www.linkedin.com/in/ramon-becker-da-silva-96b81b141//)
