» Home » JSON » Page 1
Accessing values in JSON response - error generated - json.JSON.typeMismatch(JSON.java:100)
by Tone in Programming Languages

I have the following response:


{
"data": [
{
"name": "This is a test 123",
"start_time": "2013-12-02T18:00:00+0530",
"end_time": "2013-12-02T20:00:00+0530",
"location": "Mount Lavinia",
"id": "525447507473743",
"rsvp_status": "attending"
},
{

Do you prefer to wrap JSON arrays in another JSON object or always require POST to prevent JSON Hijacking?
by Aravinth in Development Tools & Services

I recently started looking into building web applications using .NET MVC and I stumbled upon this blog post by Phil Haack: JSON Hijacking. For those of you who aren't aware of this vulnerability when using JSON to transfer sensitive data it's really a must read.


It seems that there are three ways to handle this vulnerability.


Require a POST instead of GET in your JSON servi

Json: How to extract inner Json objects from a single outer Json object using java
by iMelnik in Java

I have the following Json string, resulting from a google search query:


{"responseData":{"results":[{"region":"IL","streetAddress":"1611 South Randall Road","titleNoFormatting":"Brunswick Zone XL Randall Road","staticMapUrl":"http://maps.google.com/maps/api/staticmap?maptype=roadmap&format=gif&sensor=false&size=150x100&zoom=13&markers=42.162958,-88.334155","li

how to identify json object or json array from a json parsing text?
by sql-server in Programming Languages

i hav one problem , i parsed xml using json parsing and get json text. now i have to get values from xml. from that json text how i can identify jsonObject, jsonArray etc...


How to detect JSON object/JSON Array on XCode using JSON-Framework
by mitry in Mobile Programming

I have some problem with JSON parsing. When I hit URL, I've got JSON response like this:


//JSON 1
{ "data":
{"array":
["3",
{"array":
[
{"id":"1","message":"Hello","sender":"inot"},
{"id":"2","message":"World","sender":"inot"},
{"id":"3","message":"Hi","sender":"marza"}

insert json into mysql. json string is obtained from json.dumps
by Triumph in Programming Languages

The problem is with inserting json strings into MySQL database.
In my python program I obtain json as a result of json.dumps(d) where d is a dictionary. Inserting code is:


query = ("INSERT INTO bm_triesJsons VALUES (%s, %s, %s);"%
(article_id, revision_number, jsn))
print query
cur.execute(query)

How i can make json child nodes (JSON inside JSON)?
by itsmegb in Web Design

I try to use the jquery + json to get all elements in form and build a JSON var to post in a ASP.NET MVC method.


$.fn.serializeObject = function () {
var o = {};
var a = this.serializeArray();
$.each(a, function () {
if (o[this.name]) {
if (!o[this.name].push) {
o[this.name] = [o[this.name]];
}
o[this.name].push(t

JSON array to PHP / MySQL JSON.parse JSON.stringify how to store doube quotes and single quotes
by Bunny loves data in PHP

I have a form with fields and a text-area that allows any characters to be entered. I can't just submit the form, because the form is being recycled many times over, so the form values are being stored in associative arrays:


<form name='Theform'>
<input type="text" id="VISITOR_DETAILS_NAME" value="Joe">
<input type="text" id="VISITOR_DETAILS_SIZE"

How to convert an HTML table to JSON and use the JSON with JSON.NET?
by ec888 in Web Design

I'm asking this question because I think it's one that we run into from time to time. I needed to take an HTML table that had been manipulated client side and send the resulting table data to the server for processing. Additionally, I wanted to map this using JSON.NET directly to my business object(s).


parsing json in C# with json.net requires the json.net .dll?
by Ansari in C & C++ & C#

I have a simple c# library (myLib.dll) that can be registered to applications. It can be used as a plug-in. Now i would like to use the json.net library from Newton King, but i do not want to have 2 .dll that i have to send around.


Is there a way to use json.net and somehow embed the .dll into myLib.dll that in the end i have only my .dll?


Edit: to clerify: Is it allowed


Next
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .