line / centraldogma

Highly-available version-controlled service configuration repository based on Git, ZooKeeper and HTTP/2
https://line.github.io/centraldogma/
Apache License 2.0
604 stars 118 forks source link

Parse text to JSON before committing content in an editor #983

Closed ikhoon closed 4 months ago

ikhoon commented 4 months ago

Motivation:

I found that the content of an editor is submitted as is. If the content is JSON, we need to parse and embed it in the JSON payload.

Modifications:

Result:

JSON content is correctly submitted without trailing \n