{"id":8336925,"date":"2016-10-21T01:23:06","date_gmt":"2016-10-21T01:23:06","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/importing-data-with-braces\/"},"modified":"2016-10-21T01:23:06","modified_gmt":"2016-10-21T01:23:06","slug":"importing-data-with-braces","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/importing-data-with-braces\/","title":{"rendered":"Importing data with {} braces"},"content":{"rendered":"<p>Hello, we are running an import that requires the imported field data to contain {} brackets (see below) <\/p>\n<p>Example 1:<br \/>\n{&#8220;administrator&#8221;:{&#8220;role_price&#8221;:&#8221;123&#8243;},&#8221;wholesale&#8221;:{&#8220;role_price&#8221;:&#8221;123&#8243;},&#8221;wholesale_cod&#8221;:{&#8220;role_price&#8221;:&#8221;123&#8243;}} <\/p>\n<p>We are replacing the value &#8220;123&#8221; with mapped data {wsincgst[1]} and looks like the following in our WP All Import custom field settings: <\/p>\n<p>Example 2:<br \/>\n{&#8220;administrator&#8221;:{&#8220;role_price&#8221;:&#8221;{wsincgst[1]}&#8221;},&#8221;wholesale&#8221;:{&#8220;role_price&#8221;:&#8221;{wsincgst[1]}&#8221;},&#8221;wholesale_cod&#8221;:{&#8220;role_price&#8221;:&#8221;{wsincgst[1]}&#8221;}} <\/p>\n<p>Using this configuration results in the imported data being incomplete as follows: <\/p>\n<p>Example 3:<br \/>\n&#8220;},&#8221;wholesale&#8221;:&#8221;},&#8221;wholesale_cod&#8221;:&#8221;}} <\/p>\n<p>I understand this will be due to the usage of {} brackets, is there a way we can ensure the remaining data is also imported along with the mapped field? The end result in the field should appear the same as in example 1. <\/p>\n<p>Many thanks!<\/p>\n","protected":false},"template":"","class_list":["post-8336925","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8336925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8336925\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8336925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}