How can I continue a text string in a JSON object onto another line?

user1943020

I have a JSON object that I am defining like this:

    "COVER": {
        "H1": "XXX",
        "P1": "Very long text" +
              "More very long text"
    }

I tried to split the text onto two lines but I get a Visual Studio error messages saying "missing a comma after an object member"

cchamberlain

Turn on text wrapping in your editor / IDE.

Word wrap MSDN

JSON isn't JavaScript, it's data. It doesn't make sense to screw around with your data integrity for this. Enabling word wrap / configuring your editor to pretty-print JSON are better options. I personally prefer sublime text 3 for working with it.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I write a image onto another?

From Dev

How can I display 3 lines of text at a time onto 1 line?

From Dev

How can I insert a text file at specific line of another

From Dev

How can I check that a string does not include the text of another string?

From Dev

Can I parse json either into a string or another concrete type as object?

From Dev

In Python, how can I map values onto other another scale?

From Dev

How can I open a Generic Inquiry onto another window in Acumatica?

From Dev

How can I overlay text onto an image in this example?

From Dev

How can I append NULL onto the end of a string pointer array?

From Dev

How can I format the output line as either a string or object fields?

From Dev

How can I send a text string to another device via NFC?

From Dev

Can I drag a window onto another workspace?

From Dev

Can I drag a window onto another workspace?

From Dev

In PostgreSQL, how can I unwrap a json string to text?

From Dev

In PostgreSQL, how can I unwrap a json string to text?

From Dev

How can I build a JSON object-key from string

From Dev

How can I change an object type in JSON string?

From Dev

How can i make rtl text to continue the left part below

From Dev

In Scratch, how do you copy a PART of a costume so that you can paste that object onto another costume?

From Dev

How can I copy the content of a text file and paste it to another starting at a certain line?

From Dev

How can I add validation onto a Date that rolls into another year using Java Date class

From Dev

How can I force text in a new line?

From Dev

How can I force text in a new line?

From Dev

How can I replace a line in a text file?

From Dev

How can I pass the same object to another method of another object?

From Dev

How can I copy a text file into another?

From Dev

How can I copy a text file into another?

From Dev

How can I paste text onto numerical y-axis ticks in ggplot2 figures in R?

From Dev

How can I paste text onto numerical y-axis ticks in ggplot2 figures in R?

Related Related

  1. 1

    How can I write a image onto another?

  2. 2

    How can I display 3 lines of text at a time onto 1 line?

  3. 3

    How can I insert a text file at specific line of another

  4. 4

    How can I check that a string does not include the text of another string?

  5. 5

    Can I parse json either into a string or another concrete type as object?

  6. 6

    In Python, how can I map values onto other another scale?

  7. 7

    How can I open a Generic Inquiry onto another window in Acumatica?

  8. 8

    How can I overlay text onto an image in this example?

  9. 9

    How can I append NULL onto the end of a string pointer array?

  10. 10

    How can I format the output line as either a string or object fields?

  11. 11

    How can I send a text string to another device via NFC?

  12. 12

    Can I drag a window onto another workspace?

  13. 13

    Can I drag a window onto another workspace?

  14. 14

    In PostgreSQL, how can I unwrap a json string to text?

  15. 15

    In PostgreSQL, how can I unwrap a json string to text?

  16. 16

    How can I build a JSON object-key from string

  17. 17

    How can I change an object type in JSON string?

  18. 18

    How can i make rtl text to continue the left part below

  19. 19

    In Scratch, how do you copy a PART of a costume so that you can paste that object onto another costume?

  20. 20

    How can I copy the content of a text file and paste it to another starting at a certain line?

  21. 21

    How can I add validation onto a Date that rolls into another year using Java Date class

  22. 22

    How can I force text in a new line?

  23. 23

    How can I force text in a new line?

  24. 24

    How can I replace a line in a text file?

  25. 25

    How can I pass the same object to another method of another object?

  26. 26

    How can I copy a text file into another?

  27. 27

    How can I copy a text file into another?

  28. 28

    How can I paste text onto numerical y-axis ticks in ggplot2 figures in R?

  29. 29

    How can I paste text onto numerical y-axis ticks in ggplot2 figures in R?

HotTag

Archive