have anyone worked with json paths?
for paths
code $.[response].[creatives].[code]
code2 $.[response].[creatives].[code2]
I got error
The data structure is not the same inside the resource! We found 100 values for json path [$.[response].[creatives].[code2]], which is different that the number returned for path [$.[response].[creatives].[code]] (112 values). We MUST have the same number of values for all paths.
Then I figure out that he is reading subtypes of "code" you can see it here
{
"name": "AVEU_AS13_UK_FBX",
"brand_id": 584,
"media_url": "http://cdn.adnxs.com/p/09/9e/d0/ac/099ed0ac08914c85ce5398700181d767.jpg",
"id": 8643914,
"code": null,
"code2": null,
"member_id": 2028,
"state": "inactive",
"click_track_result": "passed",
"advertiser_id": 187067,
"publisher_id": null,
"format": "image",
"width": 99,
"height": 72,
"click_url": "http://ad-emea.doubleclick.net/clk;275300922;102143084;o?http://www.avis.co.uk/autumn-sale-2013?cid=GBDPWL000000-10022",
"flash_click_variable": null,
"no_iframes": false,
"content": null,
"original_content": null,
"file_name": "Avis logo - FBX.jpg",
"track_clicks": true,
"audit_status": "no_audit",
"macros": null,
"profile_id": 5552574,
"audit_feedback": null,
"is_prohibited": false,
"created_on": "2013-09-12 16:20:31",
"flash_backup_url": null,
"last_modified": "2013-11-21 16:08:05",
"is_control": false,
"allow_audit": false,
"is_expired": true,
"creative_upload_status": "completed",
"backup_upload_status": null,
"use_dynamic_click_url": false,
"media_subtypes": [
"popunder",
"popup",
"banner"
],
"size_in_bytes": 0,
"google_audit_status": "pending",
"google_audit_feedback": "This creative is pending review by AppNexus and is currently ineligible to serve on AdX while it is waiting.",
"msft_audit_status": "no_audit",
"msft_audit_feedback": null,
"msft_external_audit_status": "no_audit",
"msft_external_audit_feedback": null,
"is_self_audited": false,
"no_adservers": false,
"text_title": null,
"text_description": null,
"text_display_url": null,
"click_action": "click-to-web",
"click_target": "http://ad-emea.doubleclick.net/clk;275300922;102143084;o?http://www.avis.co.uk/autumn-sale-2013?cid=GBDPWL000000-10022",
"ssl_status": "disabled",
"allow_ssl_audit": false,
"media_url_secure": "https://a248.e.akamai.net/appnexus.download.akamai.com/89298/adnexus-prod/p/09/9e/d0/ac/099ed0ac08914c85ce5398700181d767.jpg",
"content_secure": null,
"original_content_secure": null,
"flash_backup_url_secure": "",
"is_hosted": false,
"content_source": "standard",
"landing_page_url": null,
"thirdparty_creative_id": "6008572830461",
"thirdparty_campaign_id": "6008572145861",
"facebook_audit_status": "approved",
"facebook_audit_feedback": "",
"custom_request_template": null,
"language": {
"id": 0,
"name": "Unknown"
},
"pop_values": null,
"brand": {
"id": 584,
"name": "Avis",
"category_id": 4
},
"template": {
"id": 329,
"name": "Facebook Basic Sidebar Ad",
"media_subtype_id": 50,
"format_id": 4
},
"adx_audit": {
"audit_status": "pending_pre_audit",
"audit_feedback": "This creative is pending review by AppNexus and is currently ineligible to serve on AdX while it is waiting."
},
"thirdparty_page": null,
"custom_macros": [
{
"code": "BODY",
"value": "Great car hire offers with the Avis sale. 20% off at 1000's of worldwide locations."
},
{
"code": "TITLE",
"value": "Avis Autumn Sale"
}
],
"segments": null,
"line_items": null,
"competitive_brands": null,
"competitive_categories": null,
"pixels": [
{
"id": 528521,
"pixel_template_id": null,
"param_1": null,
"param_2": null,
"param_3": null,
"param_4": null,
"param_5": null,
"format": "raw-url",
"content": null,
"url": null,
"secure_url": "https://ad-emea.doubleclick.net/ad/N5087.124608.GOOGLEUK/B7835315.13;sz=1x1"
}
],
"mobile": null,
"video_attribute": null,
"thirdparty_pixels": null,
"native": null,
"click_trackers": null,
"impression_trackers": null,
"sla": null,
"sla_eta": null,
"currency": "USD"
},
so he is reading "code": null, and also "custom_macros": [
{
"code": "BODY",
does anyone now how to not read this subtype "code":"BODY"?