Israel-Laguan / error-microservice

GNU General Public License v3.0
0 stars 0 forks source link

Using serde_json to create response message #1

Closed heliomar-pena closed 2 years ago

heliomar-pena commented 2 years ago

Instead of we create the JSON literal string, I propose to use serde_json, since it's already installed on the project, to create a new JSON and stringify it.

I think we could create a function or Struct that creates this JSON literal string using the serde_json library, to avoid to create manually the JSONS and stringifying it later