2020年12月23日星期三

Reading json response with .@. fails in feature file

This is my response.

`

 {   "Response": {  "_": {    "QueryResponse": {      "_": null,      "@": {        "totalCount": "55"      }    }  },  "@": {    "time": "2020-12-22T18:21:58.862-08:00"  }  }  }  

`

I am doing this in feature file

* print "total count="+ result.session.runtimeData.read_count.Response._.QueryResponse.@.totalCount

and getting <eval>:1:78 Expected ident but found error result.session.runtimeData.read_taxcode_count.Response._.QueryResponse.@.totalCount ^ in <eval> at line number 1 at column number 78

^ points to @

tried enclosing it in [''] many places for the response but I am not able to get the value.

https://stackoverflow.com/questions/65429209/reading-json-response-with-fails-in-feature-file December 24, 2020 at 02:32AM

没有评论:

发表评论