Exported convert from Value.hs. putIndex functions in JSON.hs not compile.