Basic Assignments
 
Options & Settings
 
Main Time Information
Color Code: Green
Assigned To: Brandon Moore
Created By: Brandon Moore
Created Date/Time: 9/17/2020 9:31 am
 
Action Status: Blank (new)
Show On The Web: Yes - (public)
Priority: 0
Finished/Done: No - (open)
Finished/Done By: ...
Budgeted/Estimated Value: 1,000.00  
Actual/Real Value: 0.00   [donate]
Invoice/Quote Status: Blank (n/a)
General Amount: $0.00
 
Time Id: 1872
Template/Type: Community Funded Projects
Title/Caption: Checking JSON objects
Start Date: 9/17/2020
End Date: Unknown... (open or blank)
Total Time: Unknown... (open or blank)
Target/Due Date: 9/17/2020
Main Status: Active

Sorry, no photos available for this element of time.


Notes:

We have had a couple of issues with parsing JSON objects. We use JSON to hold and store all kinds of special settings, custom configuration stuff, all API sockets use JSON, etc. There is a simple way to check to see if a JSON object is valid or not. It is a ColdFusion function called "IsJSON(someVar)" substitute out for someVar. It will return true or false and then we could go from there. We may want to search all of our code and search for "SerializeJSON(someVar)" and also "DeserializeJSON(someVar)". Serialize JSON means go from ColdFusion structure to JSON. Deserialize JSON means go from JSON back into a ColdFusion object or structure. We may want to make sure we have valid JSON before storing it in the database, when pulling it out from the database, and also when doing some kind of API socket call. If we go through the code and add the IsJSON function before working with the JSON object, it will help us not get a parsing error. This is somewhat of a big project, really simple, but kinda big just due to the number of pages that would need some minor tweaks.