geting objects of json data : iam sending a json data from php to jqeury and and i would like to  get the keys only this is how my data looks like

    var Jsondata = {"code":1,"data":{"orange":0,"apple":1,"banana":2,"mango":0},"msg":"Success"}
    
now i would only like to get the names of the fruits somthing like this

    var fruit = //oranger,apple,banana,mango
    var value = //0,1,2,0
i tried doing this 

    var fruit = Object.keys(Jsondata)
    var value = Object.values(Jsondata)
but it doesnt work