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.0
Depends: methods
Suggests: httr, curl, vctrs, testthat, knitr, rmarkdown, R.rsp, sf
Published: 2022-02-22
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://arxiv.org/abs/1403.2805 (paper)
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.0.tar.gz
Windows binaries: r-devel: jsonlite_1.8.0.zip, r-release: jsonlite_1.8.0.zip, r-oldrel: jsonlite_1.8.0.zip
macOS binaries: r-release (arm64): jsonlite_1.8.0.tgz, r-oldrel (arm64): jsonlite_1.8.0.tgz, r-release (x86_64): jsonlite_1.8.0.tgz, r-oldrel (x86_64): jsonlite_1.8.0.tgz
Old sources: jsonlite archive

Reverse dependencies:

Reverse depends: BrowserViz, CEOdata, ClusterJudge, Cogito, condusco, cyjShiny, D4TAlink.light, dictionaRy, eFRED, GoogleKnowledgeGraphR, hystReet, instaR, kofdata, openblender, rgdax, RGoogleAnalyticsPremium, RGoogleFit, Rlabkey, RSauceLabs, RWildbook, seleniumPipes, TMDb, webglobe
Reverse imports: abstr, academictwitteR, acled.api, acumos, adepro, adobeanalyticsr, adsDataHubR, aiRly, airr, alfr, alfred, algo, allcontributors, allhomes, alphavantager, altadata, altdoc, altfuelr, amapGeocode, ambiorix, amerifluxr, analogsea, aniview, AnnotationHubData, antaresRead, AnVIL, AnVILPublish, aos, apexcharter, appler, apsimx, arakno, archiveRetriever, archivist.github, arcpullr, arenar, argparse, asciicast, atom4R, aurin, ausplotsR, AutoDeskR, available, AWR.Kinesis, AWR.KMS, aws.comprehend, aws.ec2metadata, aws.iam, aws.kms, aws.lambda, aws.polly, aws.transcribe, aws.translate, AzureAppInsights, AzureAuth, AzureCognitive, AzureCosmosR, AzureGraph, AzureKeyVault, AzureKusto, AzureRMR, AzureTableStor, AzureVM, bambooHR, BARIS, baseballr, batata, bcdata, bcmaps, bdl, bea.R, beakr, bender, BENMMI, BFS, BgeeCall, bigQueryR, bigrquery, billboarder, binancer, binman, biobtreeR, BioCircos, biocompute, BiocPkgTools, biodb, biomartr, BIOMASS, biomformat, bitmexr, bizdays, blastula, blogdown, bold, BoSSA, boxr, bRacatus, brandwatchR, briqr, BrownDog, bs4Dash, bslib, bsplus, bysykkel, c3, calpassapi, canadacovid, cancensus, cansim, canvasXpress, captr, carbonate, caRecall, catSurv, cbioportalR, cbpManager, cbsodataR, ccmReportR, cdcfluview, cdrcR, CEDARS, cellbaseR, cellscape, cellxgenedp, censusapi, censys, Certara.R, cfbfastR, cffr, checkpoint, ChemmineR, chemodiv, chessR, 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, coda.base, codebook, codemeta, codemetar, cognitoR, cohortBuilder, coinmarketcapr, collidr, colourlovers, colourpicker, cometr, CompoundDb, comtradr, concaveman, configr, conjurer, connectapi, connectwidgets, covr, cpsR, cqcr, cranlogs, credentials, crosstalk, crossword.r, crul, crunch, crypto2, cryptowatchR, CSGo, csvwr, csvy, ctf, cthist, ctrdata, cumulocityr, cwbtools, cyclestreets, CytoML, czso, d4storagehub4R, daff, dagitty, daiR, danstat, data360r, dataone, dataRetrieval, datarobot, DataSpaceR, dataspice, DatastreamDSWS2R, dataverse, datoramar, debrowser, deckgl, deepdep, DemografixeR, DEPONS2R, DescriptiveStats.OBeu, designer, DEsubs, devtoolbox, dextergui, diezeit, diffviewer, dimensionsR, dipsaus, discgolf, disk.frame, distcomp, distill, dkanr, dlstats, dockerfiler, DockerParallel, docuSignr, Doscheda, dpmr, DQAgui, DQAstats, DT, DTAT, duckduckr, dynatopGIS, ebirdst, ECharts2Shiny, echarts4r, echarty, edgarWebR, EDIutils, educationdata, eia, eiopaR, elastic, elevatr, EML, emld, emuR, ENCODExplorerData, enhancerHomologSearch, EnrichIntersect, epidata, epigraphdb, epitweetr, epwshiftr, esquisse, ether, etrader, europeanaR, europepmc, eurostat, EventStudy, excelR, exCon, exifr, exiftoolr, ezpickr, facerec, factset.analyticsapi.engines, faq, fastRhockey, faux, fbRads, federalregister, fedstatAPIr, fflr, ffmetadata, ffscrapr, fgga, finbif, finnishgrid, firebase, fishpond, fishtree, fitbitr, fitbitScraper, fitbitViz, fitzRoy, fixerapi, flashCard, flexdashboard, flexsiteboard, flipdownr, flora, fmpcloudr, foghorn, fomantic.plus, foreSIGHT, fqar, franc, fredr, frictionless, frostr, ftExtra, fusionchartsR, g3viz, GA4GHclient, galah, galvanizer, ganalytics, gargle, gbfs, GCSConnection, gdalcubes, GDCRNATools, gde, geckor, gender, genderBR, genesysr, genieBPC, GenomicDataCommons, geojson, geojsonio, geojsonlint, geomaroc, geometa, GetBCBData, gethr, GetQuandlData, getwiki, geysertimes, gfer, gfonts, ggimage, ggvis, gh, ghee, ghql, gistr, gitear, gitgadget, githubinstall, gitignore, gkgraphR, Glimma, gmailr, GNRS, goodpractice, googleAnalyticsR, googleAuthR, googleCloudRunner, googleCloudStorageR, googleCloudVisionR, googleComputeEngineR, googledrive, googleLanguageR, googlenlp, googlePrintr, googler, googleTagManageR, googleVis, googleway, gotop, gprofiler2, gqlr, gradeR, gradientPickerD3, GRANBase, graphhopper, graphql, gridSVG, gson, gtrendsR, guardianapi, gwasrapidd, gwavr, gym, h2o, hackeRnews, handlr, hansard, hca, helsinki, hereR, hgnc, HiCBricks, highcharter, hlidacr, hockeyR, hoopR, htmlwidgets, httping, httptest, httptest2, httr, hydroscoper, hypothesisr, ibb, ibmAcousticR, iCellR, icesConnect, icesDatsu, ichimoku, idbr, idpr, IGoRRR, iheatmapr, imgrec, immunarch, ImmuneSpaceR, inegiR, InflectSSP, influxdbclient, influxdbr, intensegRid, InteractiveComplexHeatmap, ip2location, ip2proxy, ipeadatar, ipumsr, IRkernel, IsoMemo, IsoplotRgui, isoWater, istacr, itscalledsoccer, JamendoR, jaod, JBrowseR, jinjar, JirAgileR, jmvcore, jose, jrc, json64, jsonld, jsonstat, jsontools, jsTree, kaigiroku, keys, keyToEnglish, kibior, kiwisR, klassR, klustR, KnowSeq, kntnr, KoboconnectR, LACE, lacrmr, lambdr, languagelayeR, languageserver, lares, leafletCN, leafpm, leanpubr, learnr, LedPred, legco, leprechaun, lifx, lightgbm, liminal, limonaid, lingtypology, Linkage, lintr, livechatR, LUCIDus, MAGAR, magmaR, ManagedCloudProvider, manifestoR, manydata, mapboxapi, mapedit, mapping, mapr, mapscape, matahari, MazamaLocationUtils, measurementProtocol, mediacloudr, medrxivr, metabolomicsWorkbenchR, MetaculR, metaseqR2, meteospain, metro, micar, microdemic, MicroMoB, Microsoft365R, MIGSA, miniMeta, mitre, mlflow, mlr3oml, mnis, modchart, modelStudio, MODISTools, MODIStsp, moexer, mongolite, mongopipe, Morpho, mortyr, MouseFM, mpathsenser, mregions, mscstexta4r, mscstts, mscsweblm4r, msig, mstrio, mudata2, MungeSumstats, mygene, myvariant, N2H4, nasadata, nasapower, NasdaqDataLink, natserv, nCov2019, ndexr, ndtv, neo2R, neo4r, neonUtilities, neotoma, netboxr, netgsa, nettskjemar, newsanchor, nfl4th, nhdplusTools, nhlapi, nhlscrape, njgeo, nmadb, noaaoceans, nodbi, nominatimlite, nomisr, norgeo, nse2r, nser, NSO1212, nsrr, nzilbb.labbcat, ocs4R, ODataQuery, oddsapiR, odin, odns, OmaDB, OmicNavigator, omicplotR, OmnipathR, oncrawlR, onelogin, onepass, onsr, opalr, openadds, openai, openalexR, openbankeR, opencage, opencpu, opendotaR, openeo, OpenStats, ORFik, orthogene, osfr, osmextract, osrm, otpr, ottr, owdbr, owidR, owmr, ows4R, oxcAAR, oysteR, packer, pacs, pagedown, pageviews, paleotree, pandocfilters, pangaear, panstarrs, ParallelLogger, patentsview, pathlit, paws.common, paxtoolsr, pbixr, pcatsAPIclientR, pda, pdfetch, pdfminer, pedquant, peermodels, peRspective, pestr, phantasus, PharmacoGx, phenocamr, piggyback, pinnacle.API, pins, pkgcache, pkgdepends, pkgdown, pkgsearch, PKPDsim, Platypus, plotly, plumber, plumberDeploy, plumbertableau, pluscode, pmparser, pocketapi, polished, polmineR, postGIStools, postlightmercury, povcalnetR, powerbiR, ppcong, PrecisionTrialDrawer, preregr, previsionio, priceR, promote, protolite, provDebugR, provParseR, psichomics, ptm, ptvapi, PTXQC, pushbar, PWFSLSmoke, pxweb, PxWebApiData, QBMS, qbr, qiitr, qrandom, qtl2, qualtRics, Quandl, quarto, r.proxy, r2d3, r2symbols, r3js, r4googleads, radiant.data, rairtable, rAmCharts4, RAMClustR, rameritrade, randquotes, rangeModelMetadata, rapbase, rapiclient, rapidoc, rapsimng, RAQSAPI, rarms, raveio, ravelRy, rb3, rbcb, rbhl, rbioapi, rbison, rbokeh, rchie, rcites, rcitoid, RColetum, rconfig, rcoreoa, rcorpora, Rcrawler, rcrossref, RCX, RCzechia, RDataCanvas, rdatacite, rDataPipeline, rdbnomics, rDGIdb, rdhs, rdomains, RDota2, rdrop2, rdryad, rdtLite, reactable, reactlog, ReactomeContentService4R, ReactomeGraph4R, ReactomeGSA, readbulk, readit, readtext, rebird, rechonest, recogito, red, ReDaMoR, REDCapR, redoc, RefManageR, refuge, rehydratoR, rentrez, repec, repoRter.nih, repr, reproducer, reqres, request, rerddap, RestRserve, reticulate, reutils, reveneraR, ReviewR, Revticulate, revulyticsR, Rexperigen, rfacebookstat, rfieldclimate, rfishbase, rfishdraw, rflsgen, Rga4gh, rgbif, RGeckoboard, rgee, rgl, rgl2gltf, rgnparser, rgoogleads, rgoogleslides, rgtmx, rgugik, rhandsontable, rhub, rhymer, ricu, ridigbio, riem, riingo, rinat, RInno, rintrojs, rIP, ritis, rjstat, rKolada, RKorAPClient, rlc, rlist, rmangal, rmapshaper, rmapzen, rmarkdown, RMixpanel, rmzqc, rnassqs, rnbp, rnoaa, rnpn, rnrfa, Rnumerai, Rnvd3, roadoi, RobinHood, robis, robservable, Robyn, rockr, rolldown, rols, RonFHIR, ropendata, ROpenDota, ROpenFIGI, ROpenWeatherMap, rorcid, rosetteApi, rotl, roughnet, rphylopic, rplos, rpredictit, RPresto, rprojtree, RPublica, RPushbullet, rpx, rpymat, rredlist, rrefine, rRofex, RSBJson, rsconnect, rscopus, rscorecard, rsinaica, RSiteCatalyst, rsleep, rsnps, RSocrata, Rspotify, rstac, rstatscn, rstoat, RStripe, rstudio.prefs, rsurveycto, RTD, RtD3, rtiddlywiki, RTL, rTorch, rtrek, rtry, RTTWebClient, rtweet, rtypeform, rvertnet, rvkstat, rwebstat, Rwtss, ryandexdirect, RYandexTranslate, RZabbix, rzentra, SACCR, safedata, safetyCharts, safetyGraphics, salesforcer, SAR, sbtools, SC2API, scrobbler, sdcHierarchies, SDMtune, secret, seeclickfixr, seeker, sen2r, sendgridr, sensibo.sky, SensusR, sentiment.ai, sentryR, sergeant, servr, Seurat, sevenbridges, sfarrow, SGP, shidashi, shiny, shiny.i18n, shiny.react, shiny.semantic, shinyAce, shinybusy, shinyChakraUI, shinyCohortBuilder, shinyFeedback, shinyFiles, shinyfullscreen, shinyGovstyle, shinyjqui, shinyjs, shinylight, shinyloadtest, shinylogs, shinymaterial, shinyMatrix, shinyMobile, shinypanel, shinyscreenshot, shinySearchbar, shinyStorePlus, shinysurveys, shinytest, shinytest2, shinyTree, shinyWidgets, shopifyr, shutterstock, siebanxicor, sigmajs, SignacX, SigOptR, simrel, sketch, skilljaR, slackr, sleepwalk, SmarterPoland, SMITIDvisu, 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, swissparl, SWTools, systemPipeRdata, tableschema.r, taxadb, taxize, TCGAbiolinks, TCIApathfinder, tcsinvest, teamr, Tejapi, telegram, telegram.bot, testthat, TexExamRandomizer, tfdeploy, tfruns, ThankYouStars, threeBrain, threesixtygiving, tidycensus, tidycwl, tidygeocoder, tidygeoRSS, tidyjson, TidyMultiqc, tidyquant, tidyqwi, tidyRSS, tidystats, tidytuesdayR, tidyUSDA, tidyverse, tidywikidatar, timescape, TimeSeries.OBeu, timeseriesdb, timevis, tinyscholar, tinyspotifyr, tippy, TKCat, tm1r, TnT, togglr, tomba, TooManyCellsR, toRvik, ToxicoGx, tracerer, trackeR, tradestatistics, traits, treeio, trelliscopejs, trelloR, tremendousr, trustedtimestamping, tstools, tuber, tubern, twfy, twilio, Twitmo, TwitterAutomatedTrading, tximeta, uavRmp, UCSCXenaTools, uklr, ukpolice, UniProt.ws, uniswappeR, uptasticsearch, urlshorteneR, usdampr, usdarnass, usethis, V8, vagalumeR, valet, valhallr, vaultr, vegalite, vegawidget, vetiver, vfinputs, viafr, video, visNetwork, vitae, vkR, vmr, voson.tcn, vosonSML, voteogram, votesmart, vstsr, wallace, wbstats, wdnr.gis, webchem, webdriver, webexercises, WebGestaltR, webmockr, webmorphR, webshot, webtools, webutils, wehoop, wellknown, whereami, whoami, wiesbaden, WikidataQueryServiceR, WikidataR, WikipediR, wikitaxa, wikiTools, wildviz, windsoraiR, wordbankr, worldfootballR, worrms, wosr, WufooR, x.ent, xaringanExtra, xgboost, XKCDdata, xQTLbiolinks, XR, yhatr, zbank, zdeskR, zen4R, zipcodeR, zoltr, zzlite
Reverse suggests: auditor, azuremlsdk, AzureStor, basictabler, bench, BiocCheck, blsR, bookdown, ChemoSpec, ComplexUpset, conos, cowsay, crosstable, curl, d3r, dashCoreComponents, dashPivottable, data.tree, datadogr, DataExplorer, datamods, dbx, dccvalidator, denvax, designr, dismo, divest, dm, dodgr, downlit, DropletUtils, easystats, ecmwfr, edgeR, EuPathDB, fbar, febr, finch, funchir, futile.logger, gap, geodata, getable, glottospace, Gmisc, googlePubsubR, httr2, iBreakDown, ingredients, iNZightPlots, iNZightTools, io, isotree, jab.adverse.reactions, jqr, jsonvalidate, jsTreeR, justifier, kgschart, leaflet.extras, leaflet.extras2, leaflet.providers, lgr, lgrExtra, listviewer, log4r, logger, magick, mapdeck, matchbook, metamicrobiomeR, metricsgraphics, microservices, MoBPS, mockthat, naaccr, ncdfgeom, neonstore, networkD3, nflfastR, noctua, openssl, orderly, osmdata, pak, passport, pense, PetfindeR, Pi, pivottabler, pkgstats, pointblank, presser, PureCN, qtlcharts, quanteda, quantmod, RagGrid, rAmCharts, RAthena, rbedrock, rcellminer, rdflib, reactR, repurrrsive, rio, riskmetric, RLSeq, Rpoet, sharpshootR, shiny.reglog, shinydashboardPlus, shotGroups, showtext, sits, slickR, soilDB, stars, stats19, stenR, stoRy, SummarizedExperiment, sunburstR, swagger, sysfonts, taxalight, TextMiningGUI, thematic, tidyr, tractor.base, tximport, ustfd, vcr, webfakes, wiad, winfapReader, xfun, xplorerr

Linking:

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