Check if result is a empty string

Create a empty json if result is a empty string