Solved

JSON Objects in ColdFusion

Posted on 2010-08-16
5
523 Views
Last Modified: 2013-12-24
I have a partner that wants to send my CFC the following Array of Objects using JSON:

[
  {
    "fullName": "Joe Strummer",
    "phoneNumber" : 2028586745,
    "city" : "Washington, DC"
  },
 {
    "fullName": "Mick Jones",
    "phoneNumber" : 2029768143,
    "city" : "Washington, DC"
 },
 {
    "fullName": "Ian MacKaye",
    "phoneNumber" : 2022675545,
    "city" : "Washington, DC"
 }
]

What's the best way to get this data into my database? I've read the following article:
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_c-d_43.html#5176845 . It's helpful but it is calling the feed rather than another application calling MY cfc. How do access the data above so I can pass it to the deserializeJSON()?
0
Comment
Question by:coconutelegraph
  • 3
  • 2
5 Comments
 
LVL 82

Expert Comment

by:leakim971
ID: 33450422
0
 

Author Comment

by:coconutelegraph
ID: 33450532
leakim971,
Thanks for the link. I'm using mySQL. What I need help with is how to access the JSON data sent to my web service in ColdFusion.
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 33450558
0
 

Author Closing Comment

by:coconutelegraph
ID: 33504683
Thanks.
0
 
LVL 82

Expert Comment

by:leakim971
ID: 33505638
You're welcome! Thanks for the points!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now