Skip to content

Commit

Permalink
Optimize property name serialization to avoid extra concatenations
Browse files Browse the repository at this point in the history
  • Loading branch information
rcdmk committed Oct 3, 2022
1 parent 80eea30 commit 4b5fef0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jsonObject.class.asp
Original file line number Diff line number Diff line change
Expand Up @@ -678,9 +678,9 @@ class JSONobject
end if
if prop.name = JSON_ROOT_KEY then
out = out & """" & obj.defaultPropertyName & """:"
out = out & ("""" & obj.defaultPropertyName & """:")
else
out = out & """" & prop.name & """:"
out = out & ("""" & prop.name & """:")
end if
if isArray(value) or GetTypeName(value) = "JSONarray" then
Expand Down

0 comments on commit 4b5fef0

Please sign in to comment.