0

I want to make my JSON file more readable. To do this I want to add a new line but without modifying any content.

For example, with this file :

   {
        "texte": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ?",
   }

I want to have something like :

   {
        "texte": 
        "xxxxxxxxxxxxxxxxxxxxxxxxx 
         xxxxxxxxxxxxxxxxxxxxxxxxx
         xxxxxxxxxxxxxxxxxxxxxxxxx
         xxxxxxxxxxxxxxxxxxxxxxxxx",
   }

Is it a way that I can do this ? Thank you for your help,

Joss

jozinho22
  • 459
  • 2
  • 7
  • 24
  • 1
    It's not possible to do that :/ – lenilsondc Jun 06 '20 at 21:36
  • You can't do that; by definition, adding a new line or a line break would be modifying the content. It's impossible to not modify it if you're adding, removing or changing the content. – Ken White Jun 06 '20 at 22:48
  • This was a solution : https://stackoverflow.com/questions/16690101/can-a-json-value-contain-a-multiline-string/21333578 – jozinho22 Jun 07 '20 at 11:02

0 Answers0