NSWill
NSWill

Reputation: 659

How can I setup a source to host data for an iOS app

I have some experience using JSON to pull data from a .asp page. How would I go about creating my own JSON formatted data source and placing that on a server?

Any other ideas to accomplish this task?

I basically have a spreadsheet of information that I would like to store somewhere and pull that data into an iOS app.

Upvotes: 0

Views: 976

Answers (3)

NSWill
NSWill

Reputation: 659

I've found that Parse can be very helpful when the support of a server-side implementation is required. Also, Parse supports RESTful apis and JSON.

Checkout their iOS documentation; It's very thorough.

Upvotes: 0

Boon
Boon

Reputation: 41510

Sign up with a hosting company that supports PHP. Read instructions on where to place your PHP page. Create a PHP page and use its JSON library call.

Do something like this:

<?php
    header('Content-type: application/json');
    $arr = array ('name'=>'Bill','age'=>18,'gender'=>'m');
    echo json_encode($arr);
?>

http://is.php.net/manual/en/book.json.php

Upvotes: 0

Bot
Bot

Reputation: 11855

Well you can use any language. For my apps we use a PHP Webservice. There are numerous tutorials out there about how to create a JSON WebService that you host on your webserver and your mobile app communicates with.

Here is a VERY basic xml / json service that uses php and mysql. This should get you pointed in the right direction.

Upvotes: 2

Related Questions