Fixed some bugs. Changed to_json to be able to return raw values, with n...

...o translation.