Referrencing msg.payload in JSON

I need to pull a global variable using JSON how do I do that
@zenofmud @knolleary