Bug solved: now returning the full JSON object.