json data formatting bug solved