Restored value.h from jsoncpp

The code might look a bit ugly now, but I don't like at all the idea of changing the source of external libraries.