Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes SerializeJSON & timestamp bugs #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sflynn850
Copy link

The sample code was falling victim to the case-insensitivity of the SerializeJSON function (www.bennadel.com/blog/2162-maintaining-key-case-during-json-serialization-in-coldfusion.htm), and also wasn't quite generating UNIX timestamps accurately. I also indented the code for readability, which, on second thought, maybe should've happened in a separate commit.

This code is derived from code we have working in CF11.

Sean Flyn added 2 commits January 23, 2015 16:02
For more on SerializeJSON case-insensitivity, see www.bennadel.com/blog/2162-maintaining-key-case-during-json-serialization-in-coldfusion.htm.

Indented the code for readability.

Adjusted the timestamp code so that it generates the correct UNIX timestamp. It was incorrectly converting from UTC.
Fixed SerializeJSON bug & timestamp bug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants