Forem

Beatriz Feliciano for WoMakersCode

Posted on

7

O que é JSON?

Alt Text

JSON (JavaScript Object Notation), é um tipo de formatação de texto compacta que permite que aplicações troquem informações entre si de maneira simples e rápida. O JSON é usado pra estruturar dados e através dessas estrutura podemos fazer com que nossas aplicações se comuniquem.

Apesar do nome conter uma referência a linguagem de programação Javascript, o JSON pode ser usado com qualquer outra linguagem de programação e permite que aplicações desenvolvidas em diferentes linguagens se comunique entre si.

Um arquivo com o formato JSON deve ter seus dados estruturados por meio de uma coleção de pares com nome e valor. Seus valores devem ser:

  • Chave: seria o nome do conteúdo que queremos identificar. Sendo assim, deve ser uma string delimitada por aspas,
  • Valor: é o conteúdo que corresponde a uma chave podendo ser representado pelos seguintes tipos de dados: string, array, object, number, boolean ou null.

Exemplo:
{
"estado": "São Paulo",
"UF": "SP",
"Municipios": 645
}

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay