{"id":21321876,"url":"https://github.com/snowpact/gatsby-yaml-full-jsonify","last_synced_at":"2025-10-07T21:04:16.528Z","repository":{"id":57245200,"uuid":"341475082","full_name":"snowpact/gatsby-yaml-full-jsonify","owner":"snowpact","description":"Parses Objects into strings","archived":false,"fork":false,"pushed_at":"2021-03-22T12:38:53.000Z","size":60,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-19T12:53:18.667Z","etag":null,"topics":["gatsby-yaml","jsonify","parse","yaml"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/snowpact.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-23T08:02:54.000Z","updated_at":"2021-12-30T11:37:57.000Z","dependencies_parsed_at":"2022-09-01T06:12:00.712Z","dependency_job_id":null,"html_url":"https://github.com/snowpact/gatsby-yaml-full-jsonify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowpact%2Fgatsby-yaml-full-jsonify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowpact%2Fgatsby-yaml-full-jsonify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowpact%2Fgatsby-yaml-full-jsonify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowpact%2Fgatsby-yaml-full-jsonify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snowpact","download_url":"https://codeload.github.com/snowpact/gatsby-yaml-full-jsonify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801611,"owners_count":20350106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gatsby-yaml","jsonify","parse","yaml"],"created_at":"2024-11-21T20:11:24.902Z","updated_at":"2025-10-07T21:04:11.475Z","avatar_url":"https://github.com/snowpact.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gatsby-yaml-full-jsonify\n\nPlugin for `gatsby-transformer-yaml-full` to parse json parseable strings.\n\n## Install\n\n```bash\n$ npm install gatsby-yaml-full-jsonify gatsby-transformer-yaml-full\n```\n\n## Configure\n\n```javascript\n// gatsby-config.js\n\nmodule.exports = {\n  plugins: [\n    {\n      resolve: 'gatsby-transformer-yaml-full',\n      options: {\n        plugins: [\n          {\n            resolve: 'gatsby-yaml-full-jsonify'\n          }\n        ],\n      },\n    },\n    // ...\n  ],\n}\n```\n\n## Usage\n\nUse the `!jsonify` tag before a string to parse it into a parseable json string. The string can be multiline or one line.\nYou can omit double quotes for keys, but not for values.\n\n### Example\n\n#### YAML file\n\n```yaml\n# post.yaml\n\ntitle: Blog post\nconfig: !jsonify |\n  string: \"value\"\n  number: 2\n  object: { key: \"value\" } \n  array: [\"1\", 2]\ndata: !jsonify 'key: \"value\"'\n```\n\n#### Returning object\n\n```javascript\n{\n  title: 'Blog post',\n  config: '{ \\\"string\\\": \\\"value\\\", \\\"number\\\": 2, \\\"object\\\": { \\\"key\\\": \\\"value\\\" }, \\\"array\\\": [\\\"1\\\", 2]}',\n  data: '{ \\\"key\\\": \\\"value\\\"}'\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowpact%2Fgatsby-yaml-full-jsonify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnowpact%2Fgatsby-yaml-full-jsonify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowpact%2Fgatsby-yaml-full-jsonify/lists"}