Skip to content

Convert meson dictionary or object from configuration_data() to json string #13655

Answered by eli-schwartz
aullidolunar asked this question in Q&A
Discussion options

You must be logged in to vote

I would try using https://mesonbuild.com/Reference-manual_functions.html#configure_file_output_format

Since meson 1.3.0, configure_file(output: 'data.json', configuration: cfg_data, output_format: 'json') can be used to configure a json file instead of a C header

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by aullidolunar
Comment options

You must be logged in to vote
2 replies
@aullidolunar
Comment options

@eli-schwartz
Comment options

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