Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8417097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:56:54+00:00 2026-06-10T01:56:54+00:00

My server outputs this JSON when I put the URI in web browser. My

  • 0

My server outputs this JSON when I put the URI in web browser. My client app will get this JSON using JSONP because it accesses the foreign domain.

{
"is_execution_successful":true,
"data": "something"
}

Is there a way to do a JSONP without wrapping the response like this:

echo $_GET['json_callback']. '('. json_encode($rtnjsonobj) . ')';  

I don’t have permission to edit the server output. How to get the JSON using AJAX/JQuery?

Reference I read: http://remysharp.com/2007/10/08/what-is-jsonp/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T01:56:56+00:00Added an answer on June 10, 2026 at 1:56 am

    JSONP has technically nothing to do with JSON. It’s simply javascript code.

    So if the response is valid JSON, it will not do anything useful when you run it as javascript (JSONP). Especially in this case, the JSON causes a syntax error when executed as javascript.

    You can make cross-origin ajax request to the resource, but this is only possible if the server sends this header:

    Access-Control-Allow-Origin: *
    

    The star can be replaced with your specific origin of course, it doesn’t have to be a wildcard

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am able to send data to the server using JSON and get back
I have an .aspx file that outputs an image using the following methods: Server.MapPath(somefile.png)
I am using a RESTfull webservice with this methode: @POST @Consumes({application/json}) @Path(create/) public void
I am getting DataTables warning: JSON data from server could not be parsed. This
I am using java for my server side application and phonegap for my client
I have a SQL Server 2005 output like this: Date | Result | Sum
Why when use Youtube-dl on linux ubuntu server many link generate this output? [youtube]
Example input: SERVER_NAME=server1 PROFILE_NAME=profile1 ... Example output: SERVER_NAME=server3 PROFILE_NAME=profile3 ... This file will use
I'm trying to figure out the inputs and the outputs of any SQL Server
This is the script that works: curl -H 'content-type:application/json' -d '{userrequest: {username: testname, status:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.