XSS via JSON: Why does a web application not sanitize either its incoming...
Recently working on a Rails-based web application for a company, I had to look into XSS vulnerability. It turns out that the application, in some places, could take an HTML tag (e.g., jscodehere...
View ArticleArcGIS – Convert a Shapefile into JSON with coordinates
I have a shapefile and I would like to convert in ESRI Json with ArcGIS toolbox From feature to JSON. When i convert it I visualize x and y values in meters while I want latitude and longitude...
View ArticleGetting different json response for the same data from different cartodb...
I am using cartoDB database and making a web application. I have a data in my database which you can view it from here and its public https://farook.cartodb.com/tables/entire_data. The response of the...
View ArticleDefine JSON file values by admin user
I have couple of long JSON files with predefined keys and want to have the values updated by the admin user. So I’m looking for a way where the developer (SuperAdmin in my case) can upload a JSON file...
View ArticlePowerBI in Sharepoint 2013
Has anybody of you experience with integrating PowerBI Dashboards/Tiles into SharePoint ? For my case I am searching a solution, where I can get Dashboards/Tiles via JSON File. Iframe is not a...
View ArticleSend JSON Payload in RequestContent of HttpSend with POST in SharePoint 2013...
I have a SharePoint 2013 Workflow in Visual Studio. I need to call an external Web API using POST and send some JSON payload. I couldn’t find any proper documentation to achieve it. Can anyone please...
View Articlefeed drupal 8 custom block with json decode content
i have created a block and try to feed it with WS request function amu_news_preprocess_block(&$variables) { if ($variables['elements']['#configuration']['id'] == 'amu_news_block') { $client = new...
View ArticleIs it rational to convert protobuf into json to send it to a web server?
Protobuf is a good thing, it allows c++ devs to not bother with class serialization/deserialization, is fast and .proto format is very nice. It also allows automatic data validation. But the messages...
View ArticleIntegrating extra Javascript and CSS into Child Theme
I’m trying to create a “Take a Tour” feature on my website that allows users to take a tour to see the main features of the site. I’m using the http://linkedin.github.io/hopscotch/ framework. However,...
View ArticleHow can I parse JSON to test the string value of a nested key?
For example, here is my program’s output (bspwm, if you wanted to know): { "id": 29360131, "splitType": "vertical", "splitRatio": 0.5, "birthRotation": 90, "vacant": true, "sticky": false, "private":...
View ArticlePlugin Development: Storing and Manipulating Data That Fits JSON in Database
I am new to WordPress plugin development but not web development in general. I have a website whose functionality I am trying to port over to WordPress for a client that needs it in a custom plugin and...
View ArticleHow to model a property with two different formats and ranges
I am designing a JSON based data schema to describe the visual appearance of blocks similar to HTML elements. It should feel familiar for somebody knowledgable in HTML/CSS but is more restrictive due...
View ArticleJsonAPI – Updating the relationship for a resource
I am having trouble understanding http://jsonapi.org/. Say, I have the following endpoints in my API for authors and articles. /authors /authors/:id/articles If I wanted to fetch the details for a...
View ArticleHow can I let images uploaded via ckeditor show their full url in a json...
I have textarea fields in my headless drupal 8 site. When I get the node via REST in json it does not give the domain name in the image urls that are uploaded via ckeditor. So the images are not shown...
View ArticleHow can I load GeoJSON from URL to leaflet? [closed]
I want to use leaflet’s L.GeoJSON to load the GeoJSON from my URL. I have tested to use leaflet-ajax plugin and it worked. The codes as follow: <link rel="stylesheet"...
View ArticleHow to make an Openlayers map based on geojson layers with exposed filters?
Openlayers builds maps combining multiple layers, some of which are based off of view into a single map. From what I have experimented with, putting an exposed filter on a geojson based views, doesn’t...
View ArticleHow to convert multiple node in Json format to use in Apps?
I have created a custom module which takes post argument and sent the result in json format. function cfood_api_get_stadium_list($cn, $city){ $query = new EntityFieldQuery(); $entities =...
View ArticlePrivilege Escalation Mitigation [closed]
What is the best protection against Privilege Escalation vulnerability in web application. Basically I am able to change the HTTP response in JSON format from USER ID to ADMIN ID to get access to the...
View ArticleParsing JSON and creating analytics out of the data, what is the best way to...
I am on a project where I call an API and I want to make statistics with the data returned. It returns a big .json object. As that is not possible to flatten, and I am not interested on all the data...
View ArticleHow to syntax Json output for translation?
Example I have this outputting decoded JSON $data and want to make contents translateable in wordpress. <?php echo $data['hair']['type'] )?> So in english this would output “Brown hair”, but I’d...
View Article