You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_string_spaced_pretty.expected 1.9 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. flags = 0:
  2. {"glossary":{"title":"example glossary","GlossDiv":{"title":"S","GlossList":[{"ID":"SGML","SortAs":"SGML","GlossTerm":"Standard Generalized Markup Language","Acronym":"SGML","Abbrev":"ISO 8879:1986","GlossDef":"A meta-markup language, used to create markup languages such as DocBook.","GlossSeeAlso":["GML","XML","markup"]}]}}}
  3. flags = JSON_C_TO_STRING_SPACED:
  4. { "glossary": { "title": "example glossary", "GlossDiv": { "title": "S", "GlossList": [ { "ID": "SGML", "SortAs": "SGML", "GlossTerm": "Standard Generalized Markup Language", "Acronym": "SGML", "Abbrev": "ISO 8879:1986", "GlossDef": "A meta-markup language, used to create markup languages such as DocBook.", "GlossSeeAlso": [ "GML", "XML", "markup" ] } ] } } }
  5. flags = JSON_C_TO_STRING_SPACED|JSON_C_TO_STRING_PRETTY:
  6. {
  7. "glossary": {
  8. "title": "example glossary",
  9. "GlossDiv": {
  10. "title": "S",
  11. "GlossList": [
  12. {
  13. "ID": "SGML",
  14. "SortAs": "SGML",
  15. "GlossTerm": "Standard Generalized Markup Language",
  16. "Acronym": "SGML",
  17. "Abbrev": "ISO 8879:1986",
  18. "GlossDef": "A meta-markup language, used to create markup languages such as DocBook.",
  19. "GlossSeeAlso": [
  20. "GML",
  21. "XML",
  22. "markup"
  23. ]
  24. }
  25. ]
  26. }
  27. }
  28. }
  29. flags = JSON_C_TO_STRING_SPACED|JSON_C_TO_STRING_PRETTY|JSON_C_TO_STRING_PRETTY_TAB:
  30. {
  31. "glossary": {
  32. "title": "example glossary",
  33. "GlossDiv": {
  34. "title": "S",
  35. "GlossList": [
  36. {
  37. "ID": "SGML",
  38. "SortAs": "SGML",
  39. "GlossTerm": "Standard Generalized Markup Language",
  40. "Acronym": "SGML",
  41. "Abbrev": "ISO 8879:1986",
  42. "GlossDef": "A meta-markup language, used to create markup languages such as DocBook.",
  43. "GlossSeeAlso": [
  44. "GML",
  45. "XML",
  46. "markup"
  47. ]
  48. }
  49. ]
  50. }
  51. }
  52. }