


{"id":158190,"date":"2021-05-05T20:03:16","date_gmt":"2021-05-05T20:03:16","guid":{"rendered":"\/forum\/forums\/topic\/how-to-edit-a-json-file\/"},"modified":"2021-05-10T23:04:02","modified_gmt":"2021-05-10T23:04:02","slug":"how-to-edit-a-json-file","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-edit-a-json-file\/","title":{"rendered":"How to edit a .json file?"},"content":{"rendered":"<div class=\"Item-Body\">\n<div class=\"Message userContent\">\n<p>Hello,<\/p>\n<p>I have a specific .json file i would like to amend, specifically I would like to add a value to the end of a matrix (1 column, 20 rows) that is saved in the .json file. The name of the matrix is initial_params. Is there a short script that can be written to simply add one value to the end of the matrix (eg. to add a value to the 21st row)?<\/p>\n<p>thanks<\/p>\n","protected":false},"template":"","class_list":["post-158190","topic","type-topic","status-closed","hentry","topic-tag-lumerical","topic-tag-matrix","topic-tag-script"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_author_ip":[""],"_bbp_old_reply_author_name_id":["Anonymous"],"_bbp_old_is_reply_anonymous_id":["false"],"_btv_view_count":["1854"],"_bbp_likes_count":["0"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["158190"],"_bbp_forum_id":["27833"],"_bbp_engagement":["14496","190263"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["177601"],"_bbp_last_active_id":["177601"],"_bbp_last_active_time":["2021-05-10 23:04:02"]},"test":"graemebargen"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/158190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/158190\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=158190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}