I need help in creating a json sting in the following format.
[{"key": "hello world", "value": "hello world"}, {"key": "movies", "value": "movies"}, {"key": "ski", "value": "ski"}, {"key": "snowbord", "value": "snowbord"}]
my input data will be categories with following attributes.
:id, :name, :active
and I would like to use the :id as key and :name as value.