json_spirit now used to generate json instead of Boost.PropertyTree which failed to write anything but strings