process json correctly(error with gsp template process)