How to parse a json data
and add a login session check