strands-project / mongodb_store

MongoDB tools for storing and analysing runs of ROS systems.
BSD 3-Clause "New" or "Revised" License
49 stars 73 forks source link

GetParam returns string instead of JSON encoded string #232

Open machinekoder opened 6 years ago

machinekoder commented 6 years ago

I noticed that the GetParam service returns a Python print string instead of something JSON encoded: https://github.com/strands-project/mongodb_store/blob/kinetic-devel/mongodb_store/scripts/config_manager.py#L228

This makes it impossible to read any collection value types with the service in a consistent way.

Solution: return a JSON encoded string json.dumps() instead.