Format json compatible with gson