return JSON from methods