added subgraph output json fonctions