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

ObjectToJson Capitalize First Letter #19

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

ObjectToJson Capitalize First Letter #19

wants to merge 2 commits into from

Conversation

macgayverarmini
Copy link

Delphi, when converting objects to JSON, in the procedure "TJSONConverter.ConvertFieldNameToJson", it forcibly changes the first letter to lowercase, and there are Rest server implementations that are sensitive to the case of JSON keys. I imagine that Embarcadero did not take action on this because there is the [JSONName] attribute that tells the converter to use exactly as defined in the attribute. So I added an option in the application to add the JSONName attribute automatically.

…rter.ConvertFieldNameToJson", it forcibly changes the first letter to lowercase, and there are Rest server implementations that are sensitive to the case of JSON keys. I imagine that Embarcadero did not take action on this because there is the [JSONName] attribute that tells the converter to use exactly as defined in the attribute. So I added an option in the application to add the JSONName attribute automatically.
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.

1 participant