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

[Question, Documentation request] Spring Boot 3.4.2 supports application.yaml in JSON format #34664

Open
Volodymyr-Maiboroda-Imprivata opened this issue Mar 27, 2025 · 2 comments
Labels
status: waiting-for-triage An issue we've not yet triaged or decided on

Comments

@Volodymyr-Maiboroda-Imprivata

Accidentally, I found out that after upgrading Spring Boot from 3.1.1 to 3.4.2, it seems like I can place a JSON in the application.yaml file. For example:

  "service": {
    "name": "example-service"
  },
  "server": {
    "port": 8080,
    "shutdown": "graceful"
  },

It works. I didn't find this in any of the adoption guidelines, so I want to double-check if this is an expected feature or is something that will be changed in the future.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Mar 27, 2025
@quaff
Copy link
Contributor

quaff commented Mar 28, 2025

YAML is a superset of JSON, then a YAML parser can understand JSON, do you mean it's not supported before the upgrading?

@Volodymyr-Maiboroda-Imprivata
Copy link
Author

@quaff, Thanks for the response. I did more tests, and it does support it in 3.1.1 if I specify the correct JSON in the configuration. But is this mentioned somewhere in the documentation? We will build functionality around this possibility, and it would be great if this behavior were expected and supported in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged or decided on
Projects
None yet
Development

No branches or pull requests

3 participants