diff --git a/test/tickets/LDEV-4676.cfc b/test/tickets/LDEV-4676.cfc new file mode 100644 index 0000000000..a9d2b31cb7 --- /dev/null +++ b/test/tickets/LDEV-4676.cfc @@ -0,0 +1,12 @@ +component extends="org.lucee.cfml.test.LuceeTestCase" { + + function run( testResults , testBox ) { + describe( title = "Testcase for LDEV-4676", body = function() { + it( title = "Checking serializejson with CFC instance", body = function( currentSpec ) { + var query = new Query(); + query.TEST = {}; + expect(serializeJSON(query)).toBe('{"TEST":{},"tagName":"query","params":[],"parts":[],"attributes":{}}'); + }); + }); + } +}