tracker issue : CF-3933619

select a category, or use search below
(searches all categories and all time range)
Title:

.serializeJson() method not implemented

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 02/04/2015

Components: Language

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Normal / Some users will encounter

Locale/System: English / Win XP All

Vote Count: 5

Duplicate ID:	CF-3849074

See: https://bitbucket.org/lucee/lucee/issue/87/serializejson-method-not-implemented

The serializeJson() method has not been implemented, eg:
fullName = {};
fullName.firstName = "Rosie";
fullName["lastName"] = "Smith";

fullNameAsJson = fullName.serializeJson();

This should be implemented on all data types, obviously. Raising it as a bug not an enhancement as its a fairly glaring omission.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3933619

External Customer Info:
External Company:  
External Customer Name: Adam
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

+1 ......................
Vote by External U.
8597 | February 04, 2015 06:17:00 PM GMT
+1 //////////////////////
Vote by External U.
8598 | February 04, 2015 08:09:12 PM GMT
This would be great. It'd be even greater if it were just .toJSON()
Comment by External U.
8592 | October 01, 2015 11:18:27 AM GMT
+1...................................
Vote by External U.
8599 | October 01, 2015 11:18:51 AM GMT
Agreed, Abram.
Comment by External U.
8593 | October 01, 2015 12:54:14 PM GMT
Agree, toJSON() is better.
Comment by External U.
8594 | October 01, 2015 03:35:52 PM GMT
+1 .........................................
Vote by External U.
8600 | October 01, 2015 05:04:35 PM GMT
+1 -------------------------------------
Vote by External U.
8601 | October 02, 2015 08:03:08 AM GMT
Added toJSON as member function. will behave similar to serializeJSON(str) function. So now you can use it like this: arr = [1,2,3,4,5]; writeOutput(x.toJSON()); toJSON is not
Comment by Milan C.
8595 | October 27, 2015 11:14:02 PM GMT
Tracking this as a part of bug no. CF-3849074
Comment by Suchika S.
8596 | November 02, 2015 05:03:50 AM GMT