skip to Main Content

Javascript – Taking specific values in a JSON file and make another JSON file with extracted

I have a JSON file that is taken from the data of the project. However, there are information in it that I do not need for my specific goal. This is the JSON data: const toSql = [ {"id":1,"battlerName":"Actor1_1","characterIndex":0,"characterName":"Actor1","classId":1,"equips":[2,0,0,3,0],"faceIndex":0,"faceName":"Actor1","traits":[{"code":51,"dataId":2,"value":1},{"code":51,"dataId":4,"value":1}],"initialLevel":1,"maxLevel":99,"name":"Reid","nickname":"","note":"","profile":""}, {"id":2,"battlerName":"Actor1_2","characterIndex":1,"characterName":"Actor1","classId":1,"equips":[1,0,0,9,0],"faceIndex":1,"faceName":"Actor1","traits":[],"initialLevel":1,"maxLevel":99,"name":"Priscilla","nickname":"","note":"","profile":""},…

VIEW QUESTION

json path for this JSON

I want to know json path for "/v1/test/anySales" first element in consume node. I dont want list of items from that content node but the very first element like [0]. Basically i want to use assertj java lib and want…

VIEW QUESTION

Json – Set Default values for nested objects using JOLT

I have a nested JSON object like this: { "field1": "value1", "field2": "value2", "field3": { "data": [ { "subField1": "subValue1", "subField2": "subValue2", "subField3": { "nestedField1": "nestedValue1", "nestedField2": "nestedValue2" }, "subField4": { "nestedField1": { "subNestedField1": "subNestedValue1", "subNestedField2": "subNestedValue2" }, "nestedField2": {…

VIEW QUESTION
Back To Top
Search