add assignment to JSON