We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3852456 commit c0535c5Copy full SHA for c0535c5
grails-test-suite-web/src/test/groovy/org/codehaus/groovy/grails/web/converters/JSONConverterTests.groovy
@@ -132,6 +132,13 @@ class JSONConverterTests extends AbstractGrailsControllerTests {
132
133
assertEquals('{"line":"first line \\n second line"}', result.toString())
134
}
135
+
136
+ // GRAILS-11530
137
+ void testMoreStringsWithQuotes() {
138
+ def str = 'Hi, this is my "test"'
139
+ def json = new grails.converters.JSON([a:str])
140
+ assertEquals('{"a":"Hi, this is my \\"test\\""}', json.toString())
141
+ }
142
143
void onSetUp() {
144
GroovySystem.metaClassRegistry.removeMetaClass Errors
0 commit comments