Build data in json