Solved

JSON Objects in ColdFusion

Posted on 2010-08-16
5
533 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

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to implement server side field validation and display customized error messages to the client.
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

730 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