returnData() refactored. Closer to where it needs to be now. encodes arrays and returns them as json object.
returnData() refactored. Closer to where it needs to be now. encodes arrays and returns them as json object.

davidjeddy/QDICodeChallange,davidjeddy/QDICodeChallange