On Sun, Jun 2, 2013 at 6:03 AM, Yury Katkov <katkov.juriy@gmail.com> wrote:
Cool! Thanks for the pointer. I think that I can form the file using
Open Refine.

Yes, OpenRefine's templating exporter can do this transformation trivially.  Just create a new project using the CSV and select Export.  The templating exporter's default JSON structure isn't that different from what you want, so just tweaking it a little will get you there.

Tom