Hi, I am trying to parse a JSON output:
http://www.freebase.com/experimental/topic/standard?id=/en/colonel_sanders
I'd like to put the basic data into an array using Javascript. In the "properties" object I'd like to grab any "text" element one level under "properties" as a label and grab the "text" under the "values" object to match t...
Alright, this pretty much goes along with my previous question. I'm still trying to figure out how to display data from an array which is created by a PHP file- using JS/jQuery. I'm working on a points system for ZetaBoards, and I've currently got it set up here. (Points will be displayed below the users post count once I get this workin...
When I do a find query from the mongodb JavaScript console, I get a beautiful JSON response. However, when I do a find with the ruby driver, it stores the JSON as some Ruby object. How do I convert this back to JSON? Or, better yet, how do I just get the JSON without doing the extra conversions?
...
Hi,
I am a noob when it comes to json. The more I use it, I am starting to like it. I have a output that looks like this
[
{
"product": {
"id": "6",
"category": "Books",
"created": "2010-04-13 15:15:18",
},
"availability": [
{
"country": "United...
hello guys,
i got this code that keep on returning undefined msg instead of the expected html.
Purpose of function:
the purpose of the below function is to return notifications in away similar to fb one's. the code is working fine. but there's something wrong with the getJSON part that i couldn't figure out. so instead of returning "clon...
Good day!
I'm learning to create AJAX calls to PHP scripts.
Basically, I want to find the best solution to handle AJAX calls. In this question you can find my client-side part of the code.
Basically, I'd like to verify my knowledge here and if I'm wrong, get any tips how to make it correct way.
So... I'm using KohanaPHP framework (b...
Hello all,
I've got the following MySQL query:
<?php
$sql = "SELECT * FROM my_table";
$result = mysql_db_query($DBname,$sql,$link) or die(mysql_error());
$rows = array();
while($r = mysql_fetch_assoc($result)) {
$rows[] = $r;
}
print json_encode($rows);
?>
Which outputs the following JSON format:
[
{
"id":"100",
"due...
Each message that I am downloading is quite large. However, I am only interested in the JSON MIMETYPE. Is there a way to specify to the server that I am would only like to download the JSON part of the message? I have looked into the FetchProfile settings, but it does not seem to support this.
...
Hi, I am trying to use TouchJSON to retrieve data from a php page with json output. I have followed the same steps as an example project I downloaded from and it still isn't working. When I select the section containing the data from my main menu the app crashes. I am including my view controller implementation file. Thanks, enbr.
http:/...
Background: I have a Java application that many programming clients interface with. Recently, a few clients wanted me to develop an API to allow them to inherit my application's Java classes in their Ruby documents without having to change their developing environment to Jruby - they want it to remain Ruby on Rails.
In this post, it wa...
Hello,
I cannot seem to make this simple code work:
<script type="text/javascript">
$(document).ready(function(){
$.getJSON('http://maps.google.com/maps/api/geocode/json?address=cebu&sensor=false&region=ph',
function(results) {
alert(results);
});
});
</script>
It always alerts null even though the resul...
HI,
I'm having a JSON parsed return object set.
{
"word":[
"offered",
"postings"
],
"annotation":[
["offered highlighted","this is also given as annotation","This annotation has been added here currently","offering new annotation points","\"offered\" is in the sense of languages"],
["my postings","this is...
I want to create a dictionary containing array and send it to GAE using jquery's ajax request.
something like- {'a':'text', 'b':'othertext','c':['texta','textb']} which I'm creating manually.
I am able to receive and process a and b using self.request.get on GAE but not the c.
Is there any other way to create JSON object in js? Please s...
Here's my jquery:
$.ajax({
type: 'GET',
url: '/services/Service.asmx/FamilyHistory',
data: JSON.stringify({
userID: 10,
historyID: famid
}),
contentType: 'application/json; charset=utf-8',
dataType: 'json',
success: function(val) {
var famHist = ...
Hi
I am de-serializing a JSON object with the ObjectMapper class in java.
I am getting objects of different types (? extends Something) and wanted to know if there is any way to de-serialize them in some generic way.
The readValue method gets some Class type object of the type of the output object so it is somehow strongly typed.
...
I'm implementing a rest client consuming json data using the Jersy Client API. I don't really have much experience with JAXB, and especially not in combination with JSON. I've followed the example provided here (http://blogs.sun.com/enterprisetechtips/entry/consuming_restful_web_services_with) and registered a JAXBContext.
Everything w...
My html file:
<script>
$(document).ready(function() {
$.ajax({
type: "POST",
url: "search.php",
data: "id=1",
datatype: "json",
success: function(msg){
$('.result1').html(msg["name"]);
}
});
})
</script>
<s...
Hi Everyone!
I've been on working on this for ages. I am receiving a JSON from a request to an API and unfortunately the key's of each entry is a time uuid which is in binary format. I'm trying to use json_decode() to decode the json into a PHP array. However, when I echo the string I have about 80 entries but after the decode into the...
Hi,
I have a geocoding fucntion that is pulling the address values entered into a form and putting them into the geocoding call. The response is supposed to write the latitude & longitude values into the DB - unfortunately, my lat & longs are all coming back as Antarctica. Thoughts?
//Set up our variables
$longitude = "";
$latitude = "...
I'm trying to keep from depending on open source or third party libraries such as Json.NET to parse incoming JSON from an HttpWebResponse. Why? Because the more reliance on open source frameworks to aid in your implementations, the more your app has to rely on those dependencies...I don't like my apps to be depenent on a lot of librari...