Fixed string object being rendered instead of json