0

HI below is the json data returning from cfc.i used this example and when i trid to implement it working but adding to my working site gives below json data any ideas how to return only json data instead of extra site data. i used example from here. CFC JSON Output - Issue with displaying query results

Welcome to mysite Logged in as: myname

* Home
* Add 
* Edit/Update 
* Delete 


{"ROWCOUNT":1,"COLUMNS":["ID","FIRST_NAME","LAST_NAME"],"DATA":{"ID":["1234"],"FIRST_NAME":["xxx"],"LAST_NAME":["yyy"]}}
1
  • Do you have something in Application.cfc's onRequest? Or are you using any sort of framework? Commented May 13, 2011 at 18:31

1 Answer 1

3

Add cfcontent reset="true" just before you return the JSON.

Sign up to request clarification or add additional context in comments.

1 Comment

There is also the <cfcontent type="application/json" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.