Fixed incorrect way of translating JSON data to string