SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Apr 2005
    Location
    London, UK
    Posts
    506
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    json format into php

    HI,

    have the below json format that I'd like to recreate using php array's.

    Code:
    {
      "subscriber": {
        "subscriptionState" : "REFERRED",
        "division": {
           "value": "foooo"
        },
        "attributes": {
          "attributes": [
            {
              "name": "email",
              "value": "par1"
            },
            {
              "name": "firstName",
              "value": "deeeee"
            },
            {
              "name": "Individual_ID",
              "value": "123"
            },
            {
              "name": "MGMlastReferredNote",
              "value": "Just testing"
            },
            {
              "name": "MGMlastReferredByEmail",
              "value": "x@y.com"
            },
            {
              "name": "MGMlastReferredFirstName",
              "value": "John"
            },
            {
              "name": "MGMlastReferredLastName",
              "value": "Smith"
            },
            {
              "name": "MGMlastReferredByName",
              "value": "John Smith"
            },
            {
              "name": "MGMlastReferredTime",
              "value": "2014-05-23T170500Z"
            }
          ]
        }
      },
      "subscriberMessage": {
        "masterId": 1530949
      }
    }

  2. #2
    SitePoint Addict bronze trophy mawburn's Avatar
    Join Date
    Apr 2014
    Posts
    281
    Mentioned
    8 Post(s)
    Tagged
    1 Thread(s)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •