Answered step by step
Verified Expert Solution
Question
1 Approved Answer
{message: Donnes invalides}} message: Donnes invalides public void saveErreur() { JSONObject jsonObjdonne Invalide = new JSONObject(); jsonObjdonne Invalide.put( message, Donnes invalides); What I have try
{"message": "Donnes invalides"}} "message": "Donnes invalides" public void saveErreur() { JSONObject jsonObjdonne Invalide = new JSONObject(); jsonObjdonne Invalide.put( "message", "Donnes invalides"); What I have try (FileWriter f = new FileWriter(outputFile)) { f.write(jsonobjdonne Invalide.toString( indentFactor: 3)); f. flush(); f.close(); }catch (IOException e) { System.out.println("criture impossible dans le fichier JSON"); What's needed The used method {"message": "Donnes invalides"}} "message": "Donnes invalides" public void saveErreur() { JSONObject jsonObjdonne Invalide = new JSONObject(); jsonObjdonne Invalide.put( "message", "Donnes invalides"); What I have try (FileWriter f = new FileWriter(outputFile)) { f.write(jsonobjdonne Invalide.toString( indentFactor: 3)); f. flush(); f.close(); }catch (IOException e) { System.out.println("criture impossible dans le fichier JSON"); What's needed The used method
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started