build JSOn record