{"id":45210271,"url":"https://github.com/robohack/yajl","last_synced_at":"2026-02-20T16:27:55.919Z","repository":{"id":75162709,"uuid":"63517140","full_name":"robohack/yajl","owner":"robohack","description":"A fast streaming JSON parsing library in C.  This variant uses BSDMake to build and includes various fixes and enhancements.","archived":false,"fork":false,"pushed_at":"2025-01-31T06:29:41.000Z","size":1730,"stargazers_count":8,"open_issues_count":3,"forks_count":3,"subscribers_count":4,"default_branch":"bsdmake","last_synced_at":"2025-01-31T07:21:45.773Z","etag":null,"topics":["bsdmake","c","json","json-api","json-api-normalizer","json-api-serializer","json-data","json-parser"],"latest_commit_sha":null,"homepage":"http://robohack.github.io/yajl","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robohack.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-17T05:57:22.000Z","updated_at":"2025-01-31T06:13:55.000Z","dependencies_parsed_at":"2024-03-23T02:22:14.298Z","dependency_job_id":"f8eb9acb-4b33-466d-9a17-5fb5e0eedbce","html_url":"https://github.com/robohack/yajl","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/robohack/yajl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robohack%2Fyajl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robohack%2Fyajl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robohack%2Fyajl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robohack%2Fyajl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robohack","download_url":"https://codeload.github.com/robohack/yajl/tar.gz/refs/heads/bsdmake","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robohack%2Fyajl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29656774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bsdmake","c","json","json-api","json-api-normalizer","json-api-serializer","json-data","json-parser"],"created_at":"2026-02-20T16:27:55.359Z","updated_at":"2026-02-20T16:27:55.901Z","avatar_url":"https://github.com/robohack.png","language":"C","readme":"# Welcome to Yet Another JSON Library (YAJL)\n\n## NOTE:  This is a variant of the original [YAJL][LLOYD] by Lloyd Hilaiel.\n\nThis variant started as a fork of Lloyd's original.  This YAJL uses\nBSDMake for building, Cxref for documentation, and it includes a few\nminor bug fixes and other enhancements.  See the Git history.  Further\nfixes or enhancements are welcome.\n\nThis YAJL is maintained in [robohack's GitHub][GHRY] by Greg A. Woods.\n\nMotto:  Write Portable C without complicating the build!\n\nSee, e.g.: https://nullprogram.com/blog/2017/03/30/\n\nAlso, and perhaps more importantly:\n\n\thttps://queue.acm.org/detail.cfm?id=2349257\n\n## Why does the world need another C library for parsing JSON?\n\nGood question.  In a review of current C JSON parsing libraries I was\nunable to find one that satisfies my requirements.  Those are,\n\n0. written in Plain Standard ANSI C (C99!)\n1. i.e. portable\n2. robust -- as close to \"crash proof\" as possible\n3. data representation independent\n4. fast\n5. generates verbose, useful error messages including context of where\n   the error occurs in the input text.\n6. can parse JSON data off a stream, incrementally\n7. simple to use\n8. tiny\n9. can use a custom memory allocator\n\nNumbers 3, 5, 6, and 7 were particularly hard to find, and were what\ncaused me to ultimately create YAJL.  This document is a tour of some\nof the more important aspects of YAJL.\n\n## YAJL is Free.\n\nPermissive licensing means you can use it in open source and\ncommercial products alike without any fees.  My request beyond the\nlicensing is that if you find bugs drop me a email, or better yet,\nfork and fix.\n\nPorting YAJL should be trivial, the implementation is ANSI C.  If you\nport to new systems I'd love to hear of it and integrate your patches.\n\n## YAJL is data representation independent.\n\nBYODR!  Many JSON libraries impose a structure based data representation\non you.  This is a benefit in some cases and a drawback in others.\nYAJL uses callbacks to remain agnostic of the in-memory representation.\nSo if you wish to build up an in-memory representation, you may do so\nusing YAJL, but you must bring the code that defines and populates the\nin memory structure.\n\nThis also means that YAJL can be used by other (higher level) JSON\nlibraries if so desired.\n\n## YAJL supports stream parsing\n\nThis means you do not need to hold the whole JSON representation in\ntextual form in memory.  This makes YAJL ideal for filtering projects,\nwhere you're converting YAJL from one form to another (i.e. XML).  The\nincluded JSON pretty printer is an example of such a filter program.\n\n## YAJL is fast\n\nMinimal memory copying is performed.  YAJL, when possible, returns\npointers into the client provided text (i.e. for strings that have no\nembedded escape chars, hopefully the common case).  I've put a lot of\neffort into profiling and tuning performance, but I have ignored a\ncouple possible performance improvements to keep the interface clean,\nsmall, and flexible.  My hope is that YAJL will perform comparably to\nthe fastest JSON parser out there.\n\nYAJL should impose both minimal CPU and memory requirements on your\napplication.\n\n## YAJL is tiny.\n\nFat free.  No whip.  Now truly so with the elimination of CMake!\n\nenjoy,\nLloyd - July, 2007\nGreg - April, 2024\n\n[GHRY]: https://github.com/robohack/yajl/\n[LLOYD]: https://github.com/lloyd/yajl/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobohack%2Fyajl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobohack%2Fyajl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobohack%2Fyajl/lists"}