added toJsonTriple in application helper