Quantcast
Channel: Question and Answer » json
Browsing index pages (148 articles)

Trigger with multiple inserts based on JSON data

I am using sqlite and have its json1 extension available. I have the following tables (reduced to a minimal example): -- table filled from external source, -- with only a little possible impact on data...

View Article


Security exception when trying to use JavaScriptSerializer

I am trying to use the JavaScriptSerializer class in an event receiver which is part of a sandbox solution. When trying to use the class, I get a System.MethodAccessException with the following...

View Article


Add a JSON feature class to a map using ArcGIS javascript API

I am a beginner in javascript and I am working on a project using the ArcGIS javascript API. Since I am using shapefiles, I need a way to put them on the map automatically after a procedure. I have...

View Article

How can I loop through a json result by substituting field/column names with...

How can I loop through a json result by substituting column names for a variable End result: I’m building a table from a list (~25 columns). I want to attach custom classes to each cell based on the...

View Article

How Can I get multi-Dimensional array by value

In PostgreSQL 9.5 I use jsonb column called user_tag. This column has multi dimensional array like this: [{"id": 1, "tag": "@xang"}, {"id": 2, "tag": "@wang"}] I want to get when id is equal to 1. I...

View Article


Suggestions for structuring complex json structures?

I can’t find many tips for how to design complex json structures beyond the obvious tips of not trying to nest too deeply, using defined data types, etc. For example, if I have a location that needs to...

View Article

Image may be NSFW.
Clik here to view.

Considerations about returning text instead of JSON in a JSON compliant API...

I’m using Spring-Boot + Jackson to implement a Rest API. When I return some object from my methods the controllers are building a JSON compliant response. However, that’s not happening when I return...

View Article

How to return Custom JSON Response using Web API

I am pretty new to Web Api, how can I return customized JSON response? I want to achieve something like this: In the case where there was an error from the server side, the return will be:...

View Article


Filter rows on data saved as JSON arrays

My data is saved as _________________________________ id | category | other data etc -------------------------------- 1 | ["2","3"] |bla bla -------------------------------- 2 | ["254","34"]|bla bla...

View Article


Image may be NSFW.
Clik here to view.

REST API return encoded Multiline Textfield but show it correctly

I save a JSON string in my SharePoint list. This looks like:...

View Article

How does including a magic prefix to a JSON response work to prevent XSSI...

While working on a project that used the REST API for Gerrit Code Review I noticed that they do something that I thought was strange Source: To prevent against Cross Site Script Inclusion (XSSI)...

View Article

OpenLayers 2, JSON vector through WFS

Consider this example, https://geoext.github.io/geoext2/examples/grid/feature-grid.html It uses protocol: new OpenLayers.Protocol.HTTP({ url: "../data/summits.json", format: new...

View Article

Set a default value for a jsonb property in PostgreSQL

Let’s say that I have a jsonb column with documents like: { "lead": "The lead", "video": "An URL to the video" } In some cases I also need to store the name of a picture that’s uploaded to the server...

View Article


POST json data with cURL from a while loop – bash shell

I have a JSON output from which I need to extract an ID and Iterate through them and send multiple request to API execute REST API with curl. For example: This is how the JSON output looks like: {...

View Article

Why aren't tags and categories added in post request to WP Rest API

I’m using V2.0 and trying to create a post using the /posts endpoint. Here’s the payload being sent with my request: var payload = { title : "some title", format : "link", tags: ["tag1", "tag2"],...

View Article


Cannot access elements of json object

This is more of a json question but since it is within wordpress and is being processed by admin-ajax.php I thought it suits this forum best. I have created a standard ajax form procedure as shown...

View Article

Ajax callback return 500 Internal Server Error

file mymodule.inc : $items['ajax/channel/%/get-program'] = array( 'title' => t('get channel program by ID'), 'type' => MENU_CALLBACK, 'page callback' => 'get_channel_program', 'page arguments'...

View Article


Get array from JSON in Libgdx?

I wanted to load in map information using JSON, is there a way to get String, Int, float etc lists or arrays from JSON in Libgdx? My structure looks like this { "data": [{ "name": "startmap", "actors":...

View Article

Is there any WP plugin that will help me import JSON Feed from other blogs?...

I would like to import JSON feed from other websites and publish the same on my blog. There are many RSS feed importer but I am looking for JSON feed importer. I want to use JSON feed and import the...

View Article

Why use JSON dataset rather than SQL Query?

A colleague was asking me to explain a system information flow, as they are having problems with the wrong information being presented. It seems that what they have created is a custom built website,...

View Article
Browsing index pages (148 articles)


Latest Images