Skip to content

Conversation

@rcdmk
Copy link
Owner

@rcdmk rcdmk commented Oct 31, 2025

Adds a new property to objects and arrays, allowing the serialization to output only lower case keys:

<%
Dim json
Set json = New jsonObject

json.Load("{""fullName"":""John Doe"",""ID"":123456}")

json.Write() ' outputs: {"fullName":"John Doe","ID":123456}

json.lowerCaseKeys = true

json.Write() ' outputs: {"fullname":"John Doe","id":123456}
%>

A new test was added to test.asp (testLowerCaseKeys flag) to validate the change.

This closes #88.

rcdmk added 4 commits October 28, 2025 23:04
- Fix start variable redeclaration
- Fix error on duplicate property 'data'
- lowerCaseKeys property makes the serialization of keys to be lowercased
- the property is inherited by children objects and arrays when parent is set
- it is possible to set that individually for each object
- This solves issues with timings being displayed with scientific notation
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.

add lcase as an option when LoadRecordset

2 participants