Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Lib/Classes/ASPUnitJSONResponder.asp
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,13 @@
End Function

Private Function JSONNumberPair(strName, varValue)
JSONNumberPair = JSONString(strName) & ":" & varValue
JSONNumberPair = JSONString(strName) & ":" & (FormatNumber(varValue, 0, -1, -1, -1))
End Function

Private Function JSONBooleanPair(strName, blnValue)
JSONBooleanPair = JSONString(strName) & ":" & LCase(blnValue)
Dim output : output = "true"
If Not blnValue Then output = "false"
JSONBooleanPair = JSONString(strName) & ":" & output
End Function

Private Function JSONStringEscape(strValue)
Expand Down