{"from":"yaml","to":"json","result":"{\n \"name\": \"Ana\",\n \"roles\": [\n \"admin\",\n \"editor\"\n ],\n \"active\": true\n}"}
curl --location --request POST 'https://zylalabs.com/api/13173/structured+data+format+converter+api/26719/convert+a+document' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw 'name: Ana
roles:
- admin
- editor
active: true'
Después de registrarte, a cada desarrollador se le asigna una clave de acceso a la API personal, una combinación única de letras y dígitos proporcionada para acceder a nuestro endpoint de la API. Para autenticarte con el Structured Data Format Converter API simplemente incluye tu token de portador en el encabezado de Autorización.
| Encabezado | Descripción |
|---|---|
Autorización
|
Requerido
Debería ser Bearer access_key. Consulta "Tu Clave de Acceso a la API" arriba cuando estés suscrito.
|
Sin compromiso a largo plazo. Mejora, reduce o cancela en cualquier momento. La Prueba Gratuita incluye hasta 50 solicitudes.
(Ahorra 2 meses pagando anualmente 🎉)
Empresas líderes confían en nosotros
One endpoint to translate between the four common structured text formats. Send the content as the request body, choose the source and target formats, and receive the converted document.
Useful for migrating configuration files between formats, talking to legacy systems, exporting data for spreadsheet users, and normalizing mixed format feeds.
El punto final Convertir un Documento permite a los usuarios convertir datos de texto estructurados entre cuatro formatos: JSON YAML XML y CSV Esto es útil para migrar archivos de configuración integrar con sistemas heredados y normalizar fuentes de formatos mixtos
The endpoint accepts parameters such as "from" to specify the source format and "to" to indicate the target format. Users must provide the data in the request body for conversion.
The response data is structured as a JSON object containing three key fields: "from" (source format), "to" (target format), and "result" (the converted document). This structure allows users to easily identify the conversion details.
Accepted parameter values for the "from" and "to" fields include "json," "yaml," "xml," and "csv." Users must ensure they select valid formats for successful conversions.
Los datos devueltos están en formato JSON con el campo "result" que contiene el documento convertido como una cadena. Por ejemplo, convertir YAML a JSON dará como resultado un objeto JSON que representa la estructura de datos original
Typical use cases include migrating configuration files between formats, exporting data for spreadsheet users, and integrating data from mixed format feeds into a unified structure for processing.
Users can parse the "result" field to access the converted document. This allows for further processing, storage, or integration into applications, depending on the target format selected.
The API employs deterministic algorithms to ensure consistent output across conversions. This minimizes discrepancies and maintains data integrity, making it suitable for delivery jobs and data pipelines.