JSON (JavaScript Object Notation) is a 100% textual data interchange format originally inspired by JavaScript objects. It is widely used in RESTful web services. Parsers for JSON exist in nearly all languages, and libraries also exist which can deserialize JSON to native objects or serialize native ...

learn more… | top users | synonyms (3)

0
votes
0answers
6 views

Getting json token from server on iOS - OpenTok

I'm struggling to get an iOS application to connect to my node server running OpenTok. Things work fine when I hard code the values in, but I want dynamic sessions and tokens, hence my question. I'm ...
-2
votes
4answers
34 views

parsing my given JSON in android

I have JSON and please explain how to parse this given JSON value. I want to get the value 2 in my TextView to be shown. Can you please explain me. Below is my JSON : { "name": "nbUsers", ...
0
votes
1answer
32 views

Why is stringified JSON a valid string?

We're already aware that we cannot add double quotes inside the double quotes: var str = ""hello""; //this will be invalid string but when I stringify an object like this var obj = {"name":"abc"} ...
0
votes
0answers
5 views

google spreadsheet export into json file, how to format?

I am following the tutorials that can help extract my google spreadsheet to a json file http://blog.pamelafox.org/2013/06/exporting-google-spreadsheet-as-json.html . But I have a list of object in ...
-1
votes
1answer
16 views

parsing json string in ruby

I am trying to parse a json string coming from my controller through an ajax call. The json string being parsed is in a js.erb file. I set my code up similar to this stack overflow suggestion: Parsing ...
0
votes
0answers
8 views

“Operation is not valid due to the current state of the object.” Error when trying to create new List< AudioTrack> from JsonFile in WP8

I'm trying to make an music app , I have 2 project in solution: a Main project and an AudioPlaybackAgent (APA) project. When I chose a song from my main project (which contained in a list of song) , I ...
0
votes
2answers
20 views

AngularJS routes and Ajax data on route change

I am failing to understand the Angular way to do the following... I have a router configured, once the route is changed, and the templateUrl is supplied I would like to make an Ajax call to fetch ...
1
vote
1answer
38 views

How to Convert an array into json which contains double quote in PHP?

I want to convert an array into JSON. My problem is that one of that elements in that array contain single quotes, double quotes etc. <textarea name="description" id="description"> Tesla is ...
0
votes
1answer
12 views

(Cocoa error 3840.)" (Invalid value around character 0.) AFNetworking

I've been getting the following error when using the GET method to retrieve a file from a server: Error: Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error ...
-1
votes
0answers
6 views

Preloading core data with JSON only once

I am quite new at core data and this probably has very easy solution. I have implemented a JSon parser and populated my core data entity with it. My problem is that I implemented it in App delegate ...
0
votes
0answers
11 views

putting client code in the server in order to avoid versioning hell?

so, I'm using phonegap to implement an html5 mobile app that would display some fetched from my server data. my problem is such: as my data structure is expected have many changes I don't want to ...
0
votes
1answer
16 views

Render json data to the view with play! scala 2.2.3

Here is a beginner question : I have defined Event like this : case class Event(id: Pk[Long], name: String, userId: Pk[Long]) object Event { private val EventParser: RowParser[Event] = { ...
0
votes
0answers
15 views

convert one large json to 4 json files

I have a large json file and I what to spilt it to different 4 json files, is there any javascript or command-Line for this? Thanks in advanced! my json file is like: { "cars": { "Nissan": { ...
0
votes
0answers
6 views

How to identify dynamic listview row separately to identify which row has been clicked

I am fiddling with a google map tutorial where I have a map populated dynamically with markers of values from a database using JSON. As well as this I have a listview also dynamically populated with ...
0
votes
2answers
17 views

How to get urllib2 response in json

I have the following code: import urllib2 response = urllib2.urlopen('http://python.org/') What would be the most straightforward way to get this in json ?
0
votes
0answers
23 views

Android login: app crashes when entries are invalid?

I am making a login app with JSON and MYSQL it's working fine if I inputted the correct values for the username and password but whenever I enter an invalid entry it crashes? Another weird part about ...
0
votes
0answers
8 views

Call multiple dialog boxes for JSON array

I am calling a jquery ui dialog box to display the results of my php mysql JSON query. It is basically a reminder system. The script runs every minute and if there is a reminder set for that time it ...
0
votes
1answer
24 views

Go escape comma in JSON

http://play.golang.org/p/lF2ZgAyxei How do I escape comma in JSON tag in Go? type AA struct { MyStr string `json:"sub,ject"` } func main() { jsonStr := ` { "sub,ject": "I" } ` ...
0
votes
0answers
3 views

Catching json data from hubspot webhook

For the life of me I can't figure out what I am missing. I am using HubSpot and have a workflow setup to use a web hook that posts to a script that I have. When I set the url to capture the webhook ...
0
votes
0answers
5 views

How to create a Mongoid document from JSON?

I'm trying to build a Mongoid document from a JSON string. I'm guessing it can be done this way: SomeDocumentClass.new(JSON.parse(json_string)) But is there a more convenient or straight through ...
-2
votes
1answer
35 views

Json “Not well formed” error

I am trying to use Javascript to use an external json file, however, when I run the script, the json call doesn't work. I've tried alert("hello") after using a $GetJson function, but that doesn't show ...
0
votes
3answers
40 views

JSON array always empty

I am returning a JSON array from PHP and this is always empty. Is there something obvious I am missing? <?php require("config.inc.php"); $return_arr = array(); $fetch = ...
0
votes
0answers
18 views

How to make an automatically running Chrome extension?

I've been searching around for the past few days for a way to have my extension run automatically; It works when I use chrome.browserAction.onClicked.addListener but I want it to run without having to ...
0
votes
0answers
5 views

How to host Spring Webservice REST

This is my first Webservice application. I need to know how to host it I have Spring REST Webservice. I can access succesfully my xml and JSON result in browser ...
-2
votes
4answers
25 views

Get data from json array in jquery

Hello please i am having trouble getting the data from the following array which was returned via ajax: Array ( [routes] => Array ( [0] => Array ( ...
1
vote
1answer
22 views

Is there a way to read only part of a JSON file in Java?

I am using NetBeans 7.4 on Windows 7. When I tried to read a JSON file with the following call, String jsonTxt = IOUtils.toString(new FileInputStream(inputFileName), "UTF-8"); I received an ...
0
votes
1answer
10 views

Update web service / JSON data periodically for iOS app

I am creating a currency converter app that converts the currency exchange rates for over 165 countries. The currency rates fluctuate daily. I am trying to find a way to automatically pull JSON data ...
2
votes
3answers
50 views

Is sanitizing JSON necessary?

I think it's a well-known best practice on the web to mistrust any input. The sentence "All input is evil." is probably the most cited quote with respect to input validation. Now, for HTML you ...
-2
votes
2answers
22 views

Logout Button causes crash in my android app

Hi well im trying to build an android app with account features using JSON with MYSQL. I was able to login but whenever I log out it causes a crash code snippet for onclick event public void ...
0
votes
1answer
37 views

MVC Controller Return Content vs Return Json Ajax

In MVC, why does returning Content sometimes fail in the Ajax callback, while returning Json works, even for simple string objects? Even when it fails, the data is still available if you were to ...
0
votes
0answers
9 views

Extracting BIND parameters to build a JSON query

I have a file which was exported from BIND containing TSIG values for about 500 domain names. I need to repurpose the data into JSON for a REST API query. The BIND data is formatted like so: ...
-2
votes
1answer
22 views

What is the best approach to make a simple json parser with swift? [on hold]

Just to understand the basics of json parsing.
0
votes
1answer
17 views

Android HttpPost doesnt't work

I have a mysql database on a localhost:88 called 'test' with a username 'root' and the table called 'example' in there. I'm trying to get data on my android app using php script with method $_POST. ...
0
votes
0answers
3 views

load hash informations from a mining pool

this is my first time i ask a question in here, but i was always reading helpful hints here, thanks to everyone for that. =) I have to create a webpage which loads information about a worker in a ...
0
votes
0answers
26 views

PHP accessing JSON @attributes

I have the following JSON that is parsed from an XML file: { "RECORD": [ { "ROW": { "@attributes": { "DATEEVENT": "41712.2762268518", ...
2
votes
2answers
20 views

How to populate a table from data in JSON array

I am trying to populate an HTML table from data that is in a two-dimensional array. The data is coming to an $.ajax script from a php/MySQL query. I'm successfully parsing the data in the success ...
0
votes
1answer
21 views

Parsing JsonObject into ListView

try{ JSONArray name =new JSONArray(); JSONObject data=json.getJSONObject("data"); JSONObject orders=data.getJSONObject("orders"); JSONObject ...
0
votes
1answer
29 views

How to handle JSON dynamic key in Go

If I have json like this: {"phonenumber": "3456789", emoji: {"emoji1": "12", "emoji2": "23", ...} This is two level JSON, where the key value inside emoji will be generated dynamically, it means ...
0
votes
0answers
14 views

Correct way to toggle and display object contents within JSON dropdown

So, I'm working on accessing a JSON object, within a JSON Object (not sure if it would be easier storing it as an array), in an attempt to do provide more customiztion for user selection. I want to ...
1
vote
1answer
30 views

How to serialize “12/19/2013 12:00:00 AM” to DateTime Type on C# using DataContractJsonSerializer

I'm currently using the DataContractJsonSerializer class but I cannot convert dates like 12/19/2013 12:00:00 AM to a C# DateTime Object. The error that I'm getting says: There was an error ...
0
votes
4answers
40 views

Generate JSON without slashes using PHP & MySQL

i want to generate JSON values exactly like this one here { "feed": [ { "id": 1, "name": "National Geographic Channel", "image": ...
0
votes
0answers
17 views

Failed to read JSON file using $http.get in angular script on Rails and Undefined $scope

Q1: I have the following code: <script> function ProductionIndexCtrl($scope, $http) { $http.get('POD.json').success(function(data) { $scope.results = ...
0
votes
1answer
19 views

Structure of the JSON flare input for D3.js Treemap Visualization

I am currently working with the Treemap visualization of D3.js and was hoping to understand how the flare.json used in the example has been organized. Does the format of the json input file need to be ...
0
votes
0answers
15 views

How to write advanced conditions in RequireJS?

How to write custom conditions in including JS files using RequireJS. Example:1 if("ontouchend" in document) document.write("<script ...
0
votes
0answers
18 views

Parse BSON from WebApi with Jackson

In my project I'm trying to parse the content of HttpResponseMessage with Jackson. The WebApi controller returns response message in bson format: public async Task<HttpResponseMessage> ...
0
votes
2answers
18 views

How to return string with accent from controller to View via Ajax JSon

My problem is that the words that are returned from my controller to view via JsonResult are losing their accent, instead of accent it's getting converted for a symbol. This word "Finalizar_Saída" ...
1
vote
0answers
31 views

Node.js CSV to JSON - Out of Memory (~1'000'000 records)

I have a script which converts CSV to JSON, there are approx 1'000'000 records to parse and build JSON objects out of, these objects are then written to a MongoDB database, my script however returns ...
1
vote
1answer
32 views

Rails 4.1 upgrade resulting in missing template

I use rails with rabl, in 4.0.x it worked perfectly to render the correct result in a rabl template and errors just through render :json => {:error => 'oh no!'}. I used ActionController::Metal and ...
0
votes
0answers
7 views

Reading JSON object via webhook

Ive been trying to read out the contents of a JSON object via a POST to a url and coming up short. Not getting any output on. Name echo $_REQUEST ["first_name"]; ! echo $_REQUEST ...
0
votes
1answer
7 views

Custom yeoman generator problems with the npminstall function

I've been checking some guides about the creation of a custom yeoman generator. At the end, I have this: runNpm: function(){ var done = this.async(); this.npmInstall("", function(){ ...