rename createJson to createResultArray