Skip to content

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