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

3
  • 1
    It's not possible to do that :/ Commented Jun 6, 2020 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. Commented Jun 6, 2020 at 22:48
  • This was a solution : stackoverflow.com/questions/16690101/… Commented Jun 7, 2020 at 11:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.