Skip to content
Discussion options

You must be logged in to vote

Now that I read your issue again in more detail, it rather seems to be an problem with rescanning. Due to the fact that \tl_rescan:nn is not expandable, there is no straight-forward way to process an expandable and also rescanned token list. The typical way to overcome this problem is to store the rescanned result in another token list variable and then use this.

I discovered that the package code can be improved in this regard. As from version 1.7.0 your code snippet should work as expected.

In general, you can make use of \jsonparse_rescan:n and/or \jsonparse_set_rescan:Nn to have better control about when and where the rescanning takes place:

\documentclass{article}
\usepackage{jsonparse…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jasperhabicht
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #84 on January 19, 2026 23:03.