Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-10685

the default JsonOutput.toJson() can't handle when the String is chinese.

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      when i use the default JsonOutput.toJson() ,the String is chinese,output is not chinses, like unicode。

       

      output:

       

      i hope when the String is chinese, the output is alse chinese, like Gson, for example.

       

      output:

      Attachments

        1. image-2022-07-09-10-12-58-077.png
          19 kB
          zouchangpeng
        2. image-2022-07-09-10-12-40-593.png
          3 kB
          zouchangpeng
        3. image-2022-07-09-10-12-16-325.png
          20 kB
          zouchangpeng
        4. image-2022-07-09-08-57-15-627.png
          8 kB
          zouchangpeng
        5. image-2022-07-09-08-56-35-658.png
          21 kB
          zouchangpeng

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zoucp zouchangpeng
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: