Skip to content

Conversation

r2evans
Copy link

@r2evans r2evans commented Sep 23, 2025

Prevent jsonlite's message about keep_vec_names=:

### without this patch
toJSON(list(a=5, b=quantile(1:5, 0.5)))
# Input to asJSON(keep_vec_names=TRUE) is a named vector. In a future version of jsonlite, this option will not be supported, and named vectors will be translated into arrays instead of objects. If you want JSON object output, please use a named list instead. See ?toJSON.
# {"a":5,"b":{"50%":3}} 

### with this patch
toJSON(list(a=5, b=quantile(1:5, 0.5)))
# {"a":5,"b":{"50%":3}} 

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Bill Evans seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@r2evans r2evans closed this Sep 23, 2025
@r2evans
Copy link
Author

r2evans commented Sep 23, 2025

(closed b/c I committed with the wrong username/email, repushed as #4291)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants