I am trying to convert the output of gremlin console into json format,
For Ex : gremlin>g.V(409608).valueMap()
sample OUTPUT : [eName:[FS-BR-GOJU-ENB-G001_MW],lng:[000086.2119100],modulation:[2048],city:[Jamshedpur],hopType:[1+0],eType:[MICROWAVE],cTime:[Sat Mar 03 20:37:27 IST 2018],aendSapId:[FS-BR-JMDP-ENB-6005],vendor:[CERAGON],domain:[MW],location:[POINT (86.21191 22.79906)],state:[Jharkhand],mTime:[Sat Mar 03 20:37:27 IST 2018],lat:[000022.7990600],sapId:[FS-BR-GOJU-ENB-G001]]
how can i convert it into json ??
This "g.V(409608).valueMap()"
is just an example, i was looking for a function/way that can convert any type of query output into json.
Actually i am trying to develop a feature in which i have a gremlin query as string ("gremlin query") and i need its output in JSON (USING JAVA).