Find Jobs
Hire Freelancers

Java - Traverse JSON nested object and replace the key name (escape dot to underscore)

$10 USD

Imekamilika
Imechapishwa over 5 years ago

$10 USD

Kulipwa wakati wa kufikishwa
I have unstructured JSON object ( nested object). Third party API will send lot of JSON files every day, so data is unstructured though JSON compliant. We can not assume some key/values will be there in data. I want to replace the dot symbol in key name with underscore. So it is a recursive call to the entire JSON object and find out deep down keys across all nested elements and get key name replaced with. I have Java Iterator to traverse all the items of JSON but within iterator, it is not allowed to change the key name, how ever it is allowed to change the value of those keys. So we may have to build new [login to view URL] object and reconstruct the entire JSON with replaced key name ( from . to underscore). So, I am looking for quick help to get this done. If key is tried to be replaced with in the iterator, this exception is thrown ( as expected). So it can not be changed in the iterator and will have build new object. Caused by: [login to view URL]: null at [login to view URL]$[login to view URL]([login to view URL]) at [login to view URL]$[login to view URL]([login to view URL])
Kitambulisho cha mradi: 18321017

Kuhusu mradi

13 mapendekezo
Mradi wa mbali
Inatumika 5 yrs ago

Unatafuta kupata pesa?

Faida za kutoa zabuni kwenye Freelancer

Weka bajeti yako na muda uliopangwa
Pata malipo kwa kazi yako
Eleza pendekezo lako
Ni bure kujiandikisha na kutoa zabuni kwa kazi
Imetolewa kwa:
Picha ya Mtumiaji
Hi, We are a team of professional software developers and we have expertise in Java. Your requirement is pretty straightforward and it can be done within a day. I've already written the code. Below are sample input and output. Input ====== { "originalTitle": "Unforgiven", "originalLanguage": "en", "budget": 14000000, "genres": { "info": { "id": 37, "name": "Western" } }, "imdbId": "tt0105695", "popularity": 10.580995, "productionCompanies": [ { "companyInfo": { "id": 171, "logo_path": null, "name": "MalpasoProductions", "originCountry": "US" } } ], "releaseDate": "1992-08-07", "revenue": 159157447, "runtime": 131, "voteAverage": 7.8, "voteCount": 1469 } Output ======= { "originalTitle": "Unforgiven", "originalLanguage": "en", "budget": 14000000, "genres_info_id": 37, "genres_info_name": "Western", "imdbId": "tt0105695", "popularity": 10.580995, "productionCompanies": [ { "companyInfo_id": 171, "companyInfo_originCountry": "US", "companyInfo_name": "MalpasoProductions" } ], "releaseDate": "1992-08-07", "revenue": 159157447, "voteAverage": 7.8, "runtime": 131, "voteCount": 1469 } You can see that the handling for the array is also in place. Please consider our proposal. Thanks, Team Think&Cooperate
$10 USD ndani ya siku 1
4.9 (12 hakiki)
3.2
3.2
13 wafanyakazi huru wana zabuni kwa wastani $16 USD kwa kazi hii
Picha ya Mtumiaji
Hi, I am interested for the project and have an experience in java. Thanks. .
$30 USD ndani ya siku 2
4.9 (57 hakiki)
5.5
5.5
Picha ya Mtumiaji
Hello Sir, We are expert in java and json. please ping me we can start it right now. Will complete by today EOD. Thanks & Regards
$20 USD ndani ya siku 10
4.9 (33 hakiki)
5.2
5.2
Picha ya Mtumiaji
Hi, I have read your job post very carefully. Thank you for this wonderful opportunity. I am very interested to this project. I believe my abilities would be perfect for your venture. I can finish this job within the necessary time frame. I am professional C#.Net Developer and JAVA Developer . I have 4+ years of experience in this field. I have also expert in HTML5,Bootstrap,React.js, node.js, React Native, codeigniter,CSS3,Java Script, Jquery, PHP and Restful api development. Regards, Golam M
$25 USD ndani ya siku 2
5.0 (4 hakiki)
2.2
2.2
Picha ya Mtumiaji
Hi I have enough experience to handle json object . it will be great to deal with such thing again if get a chance to work on such task.
$15 USD ndani ya siku 3
5.0 (1 hakiki)
1.1
1.1
Picha ya Mtumiaji
Hi, I would like to take your task. Please go through my profile for more details. looking to hear from your side.
$14 USD ndani ya siku 2
0.0 (0 hakiki)
0.0
0.0
Picha ya Mtumiaji
I will complete this JSON related exercise as soon as possible, once i get your json files or json data.
$15 USD ndani ya siku 3
0.0 (0 hakiki)
0.0
0.0
Picha ya Mtumiaji
I have good qualification and relevant skills for this assignment opportunity! Newly activated my freelancer account, I am delighted to experience with minimal cost to the project providers. Look forward to your response ASAP. Thank You.
$10 USD ndani ya siku 2
0.0 (0 hakiki)
0.0
0.0
Picha ya Mtumiaji
Hello, I have already prepared the solution for you. The source code is on my github account, I'll provide you a link right after we negotiate. There's another option, I can just give you a hint right here - don't use "for (element : collection)" iterator in the outer loop, use the full-featured "for ( ; ; )" instead. I currently need any non-zero positive feedback in my profile here, so I'd actually do this even for $0.99, but if you'll pay the full amount, I'll appreciate. P.S. Himanshu S. have provided the output with his bid, it seems this is not exactly what you need. My solution does not touch the original structure of input JSON object, it just changes the dot to underscore in key names.
$10 USD ndani ya siku 0
0.0 (0 hakiki)
0.0
0.0

Kuhusu mteja

Bedera ya UNITED STATES
Alpharetta, United States
5.0
1
Njia ya malipo imethibitishwa
Mwanachama tangu Nov 22, 2018

Uthibitishaji wa Mteja

Asante! Tumekutumia kiungo cha kudai mkopo wako bila malipo kwa barua pepe.
Hitilafu fulani imetokea wakati wa kutuma barua pepe yako. Tafadhali jaribu tena.
Watumiaji Waliosajiliwa Jumla ya Kazi Zilizochapishwa
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Onyesho la kukagua linapakia
Ruhusa imetolewa kwa Uwekaji wa Kijiografia.
Muda wako wa kuingia umeisha na umetoka nje. Tafadhali ingia tena.