Added sample to return data as Json

Removed namespaces from sample code and added sample returning Json
data.