example:
jsonp_1592191820948_64292({"code":"0","data":{"growth":"18","nutrients":"0","beanState":"2","beanImg":"https://m.360buyimg.com/mobilecms/jfs/t ... e51465.gif"}});
How to get the value of growth ?
Thank you for your help....
Response information jsonp_1 ({"***"}) format, how to extract information
Moderator: Martin
Re: Response information jsonp_1 ({"***"}) format, how to extract information
Try this:
Code: Select all
mytext='jsonp_1592191820948_64292({"code":"0","data":{"growth":"18","nutrients":"0","beanState":"2","beanImg":"https://m.360buyimg.com/mobilecms/jfs/t ... e51465.gif"}});';
match = findAll(mytext, ".*growth\":\"(.*)\",\"nut", true)[0][1];
Re: Response information jsonp_1 ({"***"}) format, how to extract information
Thank you !Horschte wrote: ↑22 Jun 2020 21:09Try this:
Code: Select all
mytext='jsonp_1592191820948_64292({"code":"0","data":{"growth":"18","nutrients":"0","beanState":"2","beanImg":"https://m.360buyimg.com/mobilecms/jfs/t ... e51465.gif"}});'; match = findAll(mytext, ".*growth\":\"(.*)\",\"nut", true)[0][1];
Learning how to use
-
- Posts: 179
- Joined: 16 Oct 2019 17:38
Re: Response information jsonp_1 ({"***"}) format, how to extract information
Hello,
Could you provide a link to the site which gave you that JSON response?
Many thanks
Micky
Could you provide a link to the site which gave you that JSON response?
Many thanks
Micky
Crude but it works.