drupal json update for prim