Ask Your Question

reading parameters from json file

asked 2020-01-21 07:20:45 -0600

Choco93 gravatar image


I wanted to know if there is a way to read parameters for my ros node from a json file, just like reading from a yaml file?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-01-21 08:30:54 -0600

gvdhoorn gravatar image

Have you tried it? JSON can be considered to be a subset of YAML, so a YAML parser should be able to parse a JSON file.

edit flag offensive delete link more


I thought it might be somehow different to read json, but works just like yaml. Thanks

Choco93 gravatar imageChoco93 ( 2020-01-23 03:23:50 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-01-21 07:20:45 -0600

Seen: 19 times

Last updated: Jan 21