简体   繁体   中英

pushwoosh Send Push - Additional data - custom data

Setting in custom data of my push:

{"tab":"question","url":"http://www.webyo.es"}

And on my Android I'm receiving:

{"u":"{\"tab\":\"question\",\"url\":\"http:\/\/www.webyo.es"}"}

The Json received is not valid.

The JSON you received is invalid, corrected JSON is ,

{
    "u" : {
        "tab" : "question",
        "url" : "http://www.webyo.es"
    }
}

minified java version,

String s="{\"u\":{\"tab\":\"question\",\"url\":\"http://www.webyo.es\"}}";

Are you sure you received JSON with last quote (") not escaped? This can't be true. This is what I receive:

"u":"{\\"tab\\":\\"question\\",\\"url\\":\\"http://www.webyo.es\\"}"

Please note "u" is a JSON String.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM