Ask Your Question
0

reading parameters from json file

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

Choco93 gravatar image

Hello!

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
1

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

Comments

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

Stats

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

Seen: 19 times

Last updated: Jan 21