Quantcast
Channel: Question and Answer » json
Browsing all 148 articles
Browse latest View live

Whether to embed linked resources in REST API

I am building a REST API where clients can query user-sent messages, like this: GET http://example.com/api/v1/messages?from=0&to=100 Response: [ { "id": 12345, "text": "Hello, world!" }, { "id":...

View Article


Retrieving List collection from a REST method within a SharePoint 2013 Workflow

Here is the deal.. I have a REST method that returns Generic.List<DTOSupervisor> which has to be retreved by using a HTTP Send and GetDynamicValueProperties components. My REST method signature:...

View Article


“Industry Standard” JSON formats for game assets [closed]

This question is inspired by my venture into the Phaser game engine but seems to apply to any engine that uses JSON for its asset format. Phaser relies on PhysicsEditor to export and create the JSON...

View Article

JSON viewer for OS X

I am looking for a JSON viewer for OS X that can: open decently large files (e.g. > 10 MB), unlike the JSON Editor Eclipse Plugin (take over 1 minute to generate the treeview for a 500 KB JSON file)...

View Article

Connecting a wordpress site to an AngularJS APP

Currently I have a application that needs a blogging system added. The application is built with an AngularJS front-end and a python/Django back end. I wanted to use wordpress as the blogging system as...

View Article


Postgres: querying jsonb array with an array

My products table has a jsonb column called ‘specs’. This specs hash will often have an array field, let’s call it ‘spec_options’. When querying this table, I need to find any product that has certain...

View Article

WP Rest API and json_decode()

I’m getting familiar with the WP REST API 2 plugin and I started following the amazing directions from Torque’s Guide. Everything seems pretty clear but I’m having trouble understanding this error...

View Article

Does updating a jsonb column trigger updates on all expression indexes on...

I am using the jsonb type in PostgreSQL. I frequently make updates of the following kind (where jdoc is a jsonb column): UPDATE my_table SET jdoc = jdoc || '{a: "Hello World!"}'::jsonb WHERE id = 123 I...

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


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

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

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

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


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

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


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

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


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

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

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
Browsing all 148 articles
Browse latest View live