jsonlite: A Simple and Robust JSON Parser and Generator for R

A reasonably fast JSON parser and generator, optimized for statistical data and the web. Offers simple, flexible tools for working with JSON in R, and is particularly powerful for building pipelines and interacting with a web API. The implementation is based on the mapping described in the vignette (Ooms, 2014). In addition to converting JSON data from/to R objects, 'jsonlite' contains functions to stream, validate, and prettify JSON data. The unit tests included with the package verify that all edge cases are encoded and decoded consistently for use with dynamic data in systems and applications.

Version: 1.8.8
Depends: methods
Suggests: httr, vctrs, testthat, knitr, rmarkdown, R.rsp, sf
Published: 2023-12-04
Author: Jeroen Ooms ORCID iD [aut, cre], Duncan Temple Lang [ctb], Lloyd Hilaiel [cph] (author of bundled libyajl)
Maintainer: Jeroen Ooms <jeroen at berkeley.edu>
BugReports: https://github.com/jeroen/jsonlite/issues
License: MIT + file LICENSE
URL: https://jeroen.r-universe.dev/jsonlite https://arxiv.org/abs/1403.2805
NeedsCompilation: yes
Citation: jsonlite citation info
Materials: NEWS
In views: WebTechnologies
CRAN checks: jsonlite results

Documentation:

Reference manual: jsonlite.pdf
Vignettes: Getting started with JSON and jsonlite
Fetching JSON data from REST APIs
Combining pages of JSON data with jsonlite
A mapping between JSON data and R objects
Simple JSON RPC with OpenCPU

Downloads:

Package source: jsonlite_1.8.8.tar.gz
Windows binaries: r-devel: jsonlite_1.8.8.zip, r-release: jsonlite_1.8.8.zip, r-oldrel: jsonlite_1.8.8.zip
macOS binaries: r-release (arm64): jsonlite_1.8.8.tgz, r-oldrel (arm64): jsonlite_1.8.8.tgz, r-release (x86_64): jsonlite_1.8.8.tgz
Old sources: jsonlite archive

Reverse dependencies:

Reverse depends: BrowserViz, CEOdata, ClusterJudge, Cogito, condusco, cyjShiny, D4TAlink.light, dictionaRy, eFRED, ExpressionAtlas, GoogleKnowledgeGraphR, hystReet, instaR, kofdata, openaistream, openblender, rflsgen, rgdax, RGoogleAnalyticsPremium, RGoogleFit, Rlabkey, RSauceLabs, rusquant, RWildbook, seleniumPipes, TMDb, webglobe
Reverse imports: abstr, academictwitteR, Achilles, acled.api, acumos, adepro, adformR, adobeanalyticsr, adsDataHubR, aiRly, airnow, airr, alabaster.base, alabaster.spatial, alfr, alfred, algaeClassify, algo, allometric, alphavantager, altadata, altfuelr, amapGeocode, AMAPVox, amazonadsR, amazons3R, amazonspR, amberr, amerifluxr, analogsea, animate, aniview, AnnotationHubData, antaresEditObject, antaresRead, AnVIL, AnVILPublish, AnVILWorkflow, aos, APCalign, apexcharter, appeears, appleadsR, appler, appsflyeR, apsimx, arakno, arcgeocoder, archiveRetriever, archivist.github, arcpullr, ARDECO, arenar, argparse, ArrayExpress, asciicast, askgpt, atom4R, ausplotsR, AutoDeskR, available, awinR, AWR.Kinesis, aws.comprehend, aws.ec2metadata, aws.iam, aws.kms, aws.lambda, aws.polly, aws.transcribe, aws.translate, azlogr, AzureAppInsights, AzureAuth, AzureCognitive, AzureCosmosR, AzureGraph, AzureKeyVault, AzureKusto, AzureRMR, AzureTableStor, AzureVM, badgen, bambooHR, baseballr, batata, bcdata, bcmaps, bdl, bea.R, beakr, bender, BENMMI, BgeeCall, bigrquery, billboarder, binancer, bingadsR, binman, biobtreeR, BiocFHIR, BioCircos, biocompute, BiocPkgTools, biodb, biomartr, BIOMASS, biomformat, bioRad, bitmexr, bizdays, blastula, blogdown, blsBandit, bodsr, bold, bonn, BoSSA, botor, boxr, brandwatchR, brickset, briqr, BrownDog, bs4Dash, bslib, bsplus, bursa, bysykkel, c2z, c3, calpassapi, camcorder, campaignmanageR, cancensus, cancerscreening, cansim, canvasXpress, captr, carbonate, caRecall, castor, catSurv, cbioportalR, cbpManager, cbsodataR, ccmReportR, CDCPLACES, CDMConnector, cdrcR, CDSE, cellbaseR, cellscape, cellxgenedp, censusapi, cereal, Certara.R, cfbfastR, cffr, chatAI4R, chatgpt, checkpoint, ChemmineR, chemodiv, childesr, chillR, chirps, chromote, ChromSCape, cimir, circle, citation, citationchaser, citecorp, civis, cjar, ckanr, clarifai, cleanrmd, ClickHouseHTTP, climaemet, ClimMobTools, clinDataReview, cloudml, cloudos, Cluster.OBeu, CNAIM, coalitions, codebook, codemeta, codemetar, cogeqc, cognitoR, cohortBuilder, coinmarketcapr, collidr, colourlovers, colourpicker, cometr, comf, CompoundDb, concaveman, configr, conjurer, connectapi, connectoModa, connectwidgets, conrad, cookiecutter, cookies, countries, covr, cpsR, cranlogs, credentials, crosstalk, crossword.r, crul, crunch, crypto2, cryptotrackr, cryptowatchR, CSGo, csodata, csvwr, csvy, ctf, cthist, ctrdata, cumulocityr, currencyapi, cwbtools, cyclestreets, CytobankAPI, CytoML, CytoPipeline, czso, d4storagehub4R, daff, dagitty, daiR, danstat, data360r, databraryr, dataone, dataRetrieval, datarobot, datasetjson, DataSpaceR, dataspice, DatastreamDSWS2R, dataverse, datoramar, debrowser, deckgl, deepdep, deepRstudio, DemografixeR, DEPONS2R, deps, DescriptiveStats.OBeu, designer, DEsubs, dextergui, dhlabR, diezeit, diffviewer, dimensionsR, dipsaus, disk.frame, distcomp, distill, dkanr, dlstats, dockerfiler, DockerParallel, docuSignr, Doscheda, dpmr, DQAgui, DQAstats, DT, DTAT, duckduckr, dynatopGIS, ebirdst, ebvcube, ecan, ecce, ECharts2Shiny, echarts4r, ecos, ECOTOXr, edgarWebR, EDIutils, educationdata, eia, EIAapi, eiopaR, elastic, elevatr, emailvalidation, EML, emld, emuR, ENCODExplorerData, enhancerHomologSearch, EnrichIntersect, enrichViewNet, epidata, epidatr, epigraphdb, epitweetr, esmtools, esquisse, etrader, euroleaguer, Euronext, europeanaR, europepmc, eurostat, EventStudy, evolMap, evprof, evsim, excelR, exCon, exifr, exiftoolr, f1dataR, facebookadsR, facebookleadsR, facebookorganicR, facerec, factset.analyticsapi.engines, factset.protobuf.stachextensions, FAIRmaterials, fanyi, faq, fastRhockey, faux, fbRads, federalregister, fedstatAPIr, feltr, fetchGoogleAnalyticsR, fetchSalesforceR, fflr, ffscrapr, fgga, finnishgrid, firebase, fishpond, fishRman, fishtree, fitbitr, fitbitScraper, fitbitViz, fitzRoy, fixerapi, FLAMES, flashCard, flexdashboard, flexsiteboard, flipdownr, flora, fmpcloudr, fomantic.plus, foreSIGHT, FormShare, foundry, fqar, franc, fredr, freecurrencyapi, frictionless, frostr, ftExtra, funkyheatmap, fusionchartsR, GA4GHclient, galah, galvanizer, gargle, gbfs, gdalcubes, GDCRNATools, gde, gDRutils, gemma.R, GenAI, gender, genderBR, genesysr, genieBPC, GenomicDataCommons, geojson, geojsonio, geomaroc, geometa, GetBCBData, GetQuandlData, getwiki, geysertimes, gfer, gfonts, ggimage, ggvis, gh, ghql, giacR, GIFT, gistr, gitear, gitgadget, gitGPT, githubinstall, gitignore, gkgraphR, Glimma, gmailr, GNRS, goodpractice, googleadsR, googleAnalyticsR, googleAuthR, googleCloudRunner, googleCloudStorageR, googleCloudVisionR, googleComputeEngineR, googledrive, googleErrorReportingR, googleLanguageR, googlenlp, googler, googleTagManageR, googleVis, googleway, gotop, gprofiler2, gptstudio, gqlr, gradeR, gradientPickerD3, grafzahl, graphhopper, graphql, gridSVG, gson, gtrendsR, guardianapi, guildai, guiplot, GWalkR, gwasrapidd, gwavr, gym, h2o, hackeRnews, handlr, hansard, happign, harmonydata, hca, helsinki, hereR, hexFinder, hgnc, HiCBricks, highcharter, hlidacr, hockeystick, hoopR, htetree, htmlwidgets, httping, httptest, httptest2, httr, hypothesis, hypothesisr, ibb, ibmAcousticR, ibmsunburst, iCellR, icesConnect, icesDatsu, idbr, IDEATools, idmc, idpr, IGoRRR, iheatmapr, imf.data, imgrec, ImmuneSpaceR, inegiR, InflectSSP, influxdbclient, influxdbr, instagramadsR, intensegRid, InteractiveComplexHeatmap, ip2location, ip2proxy, ipanema, ipbase, ipeadatar, iplookupapi, ipumsr, IRkernel, IsoMemo, isoWater, istacr, itscalledsoccer, izmir, JamendoR, JBrowseR, jdenticon, jgsbook, jinjar, jmvcore, jmvReadWrite, jose, jqbr, jrc, json2aRgs, json64, jsonld, jsonstat, jsTree, kaigiroku, keys, keyToEnglish, khisr, kibior, kisopenapi, kiwisR, klassR, klustR, KnowSeq, kntnr, KoboconnectR, konya, kosis, LACE, lacrmr, lambdr, languagelayeR, languageserver, lares, leafpm, leanpubr, learnr, LedPred, leprechaun, LifemapR, lifeR, lifx, lightgbm, liminal, limonaid, lingtypology, Linkage, linkedInadsR, lsnstat, LUCIDus, MAGAR, magmaR, mailchimpR, malariaAtlas, ManagedCloudProvider, manifestoR, manydata, mapboxapi, mapedit, mapping, mapscape, matahari, MazamaLocationUtils, mbbe, measurementProtocol, mediacloudr, medrxivr, memisc, mergen, metabolomicsWorkbenchR, MetaculR, metalite.table1, metaseqR2, meteospain, metricminer, metro, micar, MicroMoB, Microsoft365R, miniMeta, minioclient, mitre, mlflow, mlr3oml, mnis, modelStudio, MODISTools, moexer, mongolite, mongopipe, Morpho, MouseFM, mpathsenser, mpindex, mscstexta4r, mscstts, mscsweblm4r, msig, mstrio, MungeSumstats, mygene, myvariant, N2H4, nasadata, nasapower, NasdaqDataLink, natserv, ndexr, ndtv, neo2R, neo4r, neonOS, neonUtilities, neotoma2, nettskjemar, newsanchor, nfl4th, NGCHM, ngsReports, nhdplusTools, nhlapi, njgeo, nmadb, noaaoceans, nodbi, nominatimlite, nomisr, NSO1212, nzilbb.labbcat, ocs4R, ODataQuery, oddsapiR, odin, ohsome, okxAPI, OmaDB, OmicNavigator, omicplotR, OmnipathR, OnboardClient, oncrawlR, One4All, onelogin, onsr, opalr, openai, openalexR, openbankeR, opencage, opencpu, opendotaR, openeo, OpenMindat, OpenML, openscoring, OpenSpecy, OpenStats, OralOpioids, ORFik, orthogene, osdatahub, osfr, osmextract, otargen, otpr, ottr, ottrpal, owdbr, owidR, owmr, oxcAAR, oysteR, packagefinder, packer, pacs, pagedown, paleotree, PaLMr, pandocfilters, Pandora, pangaear, ParallelLogger, parquetize, patentsview, pathlit, paws.common, paxtoolsr, pbr, pcatsAPIclientR, pda, pdfetch, pdfminer, pedquant, peermodels, peRspective, pestr, phantasus, PharmacoGx, phenocamr, piggyback, pins, pinterestadsR, pkgcache, pkgdepends, pkgdown, pkgsearch, PKPDsim, planscorer, Platypus, plotly, plumber, plumberDeploy, plumbertableau, plume, pluscode, pmparser, pmxcode, pocketapi, polished, polmineR, polyglotr, postdoc, postlightmercury, potions, powerbiR, preregr, previsionio, priceR, prolific.api, promote, protolite, provDebugR, provParseR, psichomics, ptm, ptvapi, pubmedtk, pushbar, pxweb, PxWebApiData, QBMS, qbr, qgisprocess, qiitr, qtl2, qualtRics, Quandl, quanteda, quantmod, quarto, queryup, QuickJSR, quoradsR, r.proxy, r2d3, r2symbols, r3js, r4googleads, r5r, Racmacs, radiant.data, rairtable, rAmCharts4, RAMClustR, rameritrade, randquotes, rang, Rapi, rapiclient, rapsimng, RAQSAPI, rarms, Rarr, rATTAINS, ravelRy, rb3, rbcb, rbioapi, rcites, RColetum, rconfig, rcorpora, RCPA, Rcrawler, rcrossref, RCX, RCzechia, rdatacite, rDataPipeline, rdbnomics, rDGIdb, rdhs, rdomains, RDota2, rdryad, rdtLite, Rduinoiot, reactable, reactlog, ReactomeContentService4R, ReactomeGraph4R, ReactomeGSA, readit, readNSx, readtext, readysignal, rebird, receptiviti, rechonest, recogito, red, ReDaMoR, REDCapR, redditadsR, redoc, RefManageR, refuge, regcensus, rehydratoR, rentrez, repec, repoRter.nih, repr, reproducer, reqres, request, rerddap, RestRserve, reticulate, ReUseData, reutils, reveneraR, ReviewR, Revticulate, revulyticsR, Rexperigen, rextendr, rfacebookstat, rfaRm, rfieldclimate, rfishbase, rfishdraw, rgbif, rgee, rgeedim, rgl, rgl2gltf, rgnparser, rgoogleads, rgoogleclassroom, rgoogleslides, rgtmx, rgugik, rhandsontable, rhub, rhymer, RiboCrypt, ricu, ridigbio, riem, riingo, rinat, RInno, rintcal, rintrojs, ritis, RivRetrieve, rjstat, RKorAPClient, rlc, rlist, rmangal, rmapzen, rmarkdown, RMixpanel, rmzqc, rnassqs, rnaturalearth, rnbp, rnpn, rnrfa, Rnumerai, Rnvd3, roadoi, RobinHood, robis, robservable, Robyn, rockr, rollama, rolldown, rols, RonFHIR, ropendata, ROpenDota, ROpenFIGI, ROpenWeatherMap, rorcid, rosetteApi, rosv, rotl, roughnet, roughsf, rPDBapi, rphylopic, rpredictit, RPresto, rprojtree, RPublica, RPushbullet, rpx, rpymat, rredlist, rrefine, RSBJson, rsconnect, rscopus, rscorecard, rsi, rsinaica, RSocrata, Rspotify, rstac, rstatscn, rstudio.prefs, rsurveycto, RTD, rtiddlywiki, RTL, rtoot, rTorch, rtrek, rtry, RTTWebClient, rtweet, rtypeform, rvertnet, rvkstat, rwebstat, Rwtss, ryandexdirect, RYandexTranslate, RZabbix, rzentra, SACCR, safedata, safetensors, safetyCharts, safetyGraphics, salesforcer, SAR, sbtools, SC2API, scfetch, scRNAseqApp, scrobbler, sdcHierarchies, SDMtune, secret, seeclickfixr, seeker, selenium, semnar, sendgridr, sensibo.sky, SensusR, sentiment.ai, sentryR, sergeant, servr, Seurat, sevenbridges, sevenbridges2, sfarrow, SGP, shidashi, shiny, shiny.benchmark, shiny.fluent, shiny.i18n, shiny.react, shiny.semantic, shiny.telemetry, shinyAce, shinybusy, shinyChakraUI, shinyCohortBuilder, shinyFeedback, shinyFiles, shinyfullscreen, shinyGovstyle, shinyHugePlot, shinyjqui, shinyjs, shinylight, ShinyLink, shinylive, shinyloadtest, shinylogs, shinymaterial, shinyMatrix, shinyMobile, shinypanel, shinyRatings, shinyscreenshot, shinySearchbar, shinyStorePlus, shinysurveys, shinytest, shinytest2, shinyTree, shinyWidgets, shopifyadsR, shopifyr, shroomDK, siebanxicor, sigmajs, SignacX, SigOptR, simer, simrel, sketch, skilljaR, slackr, sleeperapi, sleepwalk, SmarterPoland, smartsheetr, smdocker, SMITIDvisu, snapchatadsR, snapcount, SNPannotator, SNPediaR, socialmixr, sofa, solrium, solvebio, sonicscrewdriver, sortable, sotkanet, SP2000, Spaniel, spant, sparklyr, sparklyr.nested, spatialLIBD, spectralAnalysis, spectrino, spidR, spocc, spotifyr, srcr, sship, standartox, statnipokladna, statsearchanalyticsr, statswalesr, stevedore, stmCorrViz, storywranglr, stplanr, studentlife, subscreen, SUNGEO, suppdata, susographql, swissparl, SWTools, systemPipeRdata, tableschema.r, taboolaR, taxize, TCGAbiolinks, TCGAretriever, TCIApathfinder, teal, teal.slice, teamr, Tejapi, telegram, telegram.bot, templr, TestGenerator, testthat, TexExamRandomizer, tfdeploy, tfrmt, tfruns, ThankYouStars, threesixtygiving, tidycensus, tidycwl, tidyedgar, tidygeocoder, tidygeoRSS, tidyjson, TidyMultiqc, tidyquant, tidyqwi, tidyRSS, tidystats, tidytuesdayR, tidyUSDA, tidyverse, tidywikidatar, tiktokadsR, timescape, timeseriesdb, timevis, tinyscholar, tinyspotifyr, tippy, TKCat, tm1r, TNRS, TnT, togglr, tomba, TooManyCellsR, torch, ToxicoGx, tqk, tracerer, trackeR, tradestatistics, traits, translated, traveltimeR, treeio, trelliscopejs, trelloR, tremendousr, trustedtimestamping, TSAR, tseries, tstools, tuber, tubern, twfy, twilio, Twitmo, twitteradsR, TwitterAutomatedTrading, tximeta, uavRmp, UCSCXenaTools, uklr, ukpolice, umbridge, UniProt.ws, uniswappeR, uptasticsearch, urlshorteneR, usdampr, usdarnass, usethis, V8, vagalumeR, valet, valhallr, vapour, vatcheckapi, vaultr, vegalite, vegawidget, vfinputs, viafr, video, visNetwork, vitae, vkR, vmr, voson.tcn, vosonSML, voteogram, votesmart, vstsr, vvcanvas, vvtableau, vvtermtime, vyos, wbstats, WDI, webchem, webdriver, webexercises, WebGestaltR, webmockr, webmorphR, webshot, webutils, wehoop, whereami, whoami, wiesbaden, WikidataQueryServiceR, WikidataR, WikipediR, wikitaxa, wikiTools, windsoraiR, worldfootballR, worrms, wosr, WufooR, x.ent, xaringanExtra, xgboost, XKCDdata, xmpdf, XR, yahoofinancer, yfR, yhatr, YTAnalytics, zdeskR, zen4R, zipcodeR, zoltr, zoomr, zzlite
Reverse suggests: alabaster.bumpy, alabaster.ranges, alabaster.se, amapro, arrow, atrrr, auditor, azuremlsdk, AzureStor, basictabler, BiocCheck, blsR, bookdown, bskyr, ChemoSpec, cloudfs, clusterProfiler, coda.base, ComplexUpset, conos, cookiemonster, cowsay, crosstable, curl, d3r, data.tree, datadogr, DataExplorer, datamods, dbx, denvax, designr, dismo, divest, dm, dodgr, downlit, DropletUtils, duckdbfs, easystats, echarty, ecmwfr, edgeR, epiCleanr, EuPathDB, fbar, finch, funchir, futile.logger, gap, geodata, getable, ggeffects, glottospace, Gmisc, googlePubsubR, gtfstools, hfhub, Hmisc, httr2, iBreakDown, ingredients, inldata, iNZightPlots, iNZightTools, io, ISAnalytics, isotree, jab.adverse.reactions, jqr, jsonvalidate, jsTreeR, justifier, keras3, kgschart, leaflet.extras, leaflet.extras2, leaflet.providers, lgr, lgrExtra, lintr, listviewer, log4r, logger, magick, mapdeck, mastR, metamicrobiomeR, metricsgraphics, MicrobiotaProcess, MiscMetabar, MoBPS, mockthat, naaccr, ncdfgeom, neonstore, networkD3, nflfastR, noctua, oncoscanR, openairmaps, openssl, orderly, osmdata, pak, passport, pcutils, pense, PetfindeR, Pi, pivottabler, pointblank, PureCN, qtlcharts, RagGrid, rAmCharts, RAthena, rbedrock, rcellminer, rdflib, reactR, REDCapCAST, renv, repurrrsive, rio, rirods, riskmetric, rjsoncons, RLSeq, rmapshaper, rosm, Rpoet, rtika, rworkflows, sccore, SCDB, selenider, sharpshootR, shiny.reglog, shinydashboardPlus, shinyInvoice, shotGroups, showtext, simona, sits, slickR, SNBdata, soilDB, speckle, SSEparser, stars, stats19, stenR, stoRy, SummarizedExperiment, sunburstR, swagger, sysfonts, taxalight, TextMiningGUI, thematic, TheOpenAIR, this.path, tibblify, treeshap, tximport, ursa, ustfd, vcr, vetiver, wallace, webfakes, whitewater, winfapReader, xaringan, xfun, xplorerr, yulab.utils, yyjsonr

Linking:

Please use the canonical form https://CRAN.R-project.org/package=jsonlite to link to this page.