I have server 1 that will send JSON data to my server 2 url (Drupal website)
JSON Request Object Example
{"ConfirmationNumber":"344", "E-mailAddress":"EMAIL@ADDRESS.COM", "FirstName":"FIRSTNAME", "LastName":"LASTNAME", "SKU":"XYZ"}
I need to read the above request on the Drupal website, which means server 2 parses the JSON object and executes some business logic. Any quick help really appreciated
Example:
http://mydrupalsite.com/services/register
Some external site is sending JSON data to the above URL.
I need to read the JSON content that they posted on my drupal site. This is what I want. Getting / reading data is my first step. Parse is fine, what can we do next.
source
share