How deeply can a JSON object be nested?
I was watching a video on a website that said json objects can be nested deeply. How far can a JSON object be nested before it will create an error?
View Articleproblem with to addlister event google maps in same html file
I try to make two actionlistener one when the mouse over a marker show a infowindows and the other is for get when click on a market the lat and long and make an AJAX request the two lister code is...
View ArticleAnything wrong with direct evaluation of JSON if your own code created it?
Suppose I have a server-side variable containing JSON (named strJSON) that my own code created. In JavaScript I can consume it like this: var data = <%= strJSON %>; or use a JSON parsing library:...
View ArticleIs json_decode parse-ability proof of a safe string?
Do I need to use check_plain (or something else) when displaying a user supplied JSON string, when I have previously checked it successfully parses with json_decode?
View ArticleIs it possible to use Protocol Buffers natively for message passing between a...
I want to connect an Android app to a Go web service (I have a small social network in mind) and would like to pass data to and from the web service using Protocol Buffers, since it recently seems to...
View ArticleIs there a benefit of using stateless JWT over SHA256 hash for API tokens?
Does it make sense to use stateless JWT (without persistent storage) over plain SHA256? Example scenario: User logs in User token generated as follows: a. JWT.encode(userId, ‘secret’) or b....
View ArticleGetting an ItemCount with filtering in SP2013 using REST api
I am attempting to return an integer (itemcount) of the items within a SP2013 list. I have done this easily using the stock standard json method. However I have a need of counting the splist items...
View ArticleGeoJson and D3.js multipolygon
I have this geometric shape file, so no map of a city. I store the two Shapefiles in a GIS database as a geometric form. Now, I want to visualize the geojson data. I created the GeoJson data first with...
View ArticleUsing remote data in post/pages/widgets in WordPress custom plugin by jSON
I have a URL like this: http://examplesite.com/manage/access?id=22&access_key=12345678 This is a jSON file. I want to create custom WordPress plugin and put this access key in the plugin. When I...
View ArticleIs it possible to select distinct values in a json document using PostgreSQL?
I have a column that is using the JSON type. I would like to perform a query to select all distinct records for a particular field in the JSON string: I.e. given these three documents { id: 1, s: "foo"...
View ArticlePostgreSQL JSON data type used as NOSQL, But VIEW as Relational Data Structure
Could I create a VIEW from the JSON data type but have it as a relational structure? Example: SELECT * FROM json_test; Results [ { "name": "Roy", "Country": "USA", "hobby": "Swim", "address": "Church...
View Articleindexable JSON datatype in MySQL/MariaDB
In PostgreSQL 9.4 there is a JSONB datatype which allows you to index on fields in the stored JSON objects. Does MySQL/MariaDB have an equivalent? I’m specifically interested in the MariaDB Galera...
View ArticleDesign consideration on JSON schema for an API
I have an API endpoint that retrieve data from 3 SQL tables on the server-side. At the moment, I do a SELECT with joins, consolidate/reorganize the selected data based on a JSON schema, and then send...
View ArticleJavascript calls C# code and parser error
I am trying to get my javascript to call some C# code that I have added to my Sharepoint site. Unfortunately every time it runs, I’m not getting the “Success” i had programmed in. Instead I get this:...
View ArticleJSON and form-urlencoded encoded payloads in Burp Intruder
The application I’m running a security assessment on encodes POST requests as follows: POST /foo/save HTTP/1.1 Content-Type: application/x-www-form-urlencoded; charset=UTF-8 X-Requested-With:...
View Articledrupal 7 AJAX loaded node returns two different formats
hi I’m loading some node info via AJAX and in one instance it works fine, the other instance I get raw information back, I’m not sure if this raw info if JSON (as I’m not sure what JSON is), but what...
View ArticleAjax load node via jQuery
I’m having a bit of an issue with Ajax appearing inconsistent when loading my nodes. I initially followed the advice in this blog http://mrkadin.com/blog/node/70 which appears to work perfectly well. I...
View ArticleJSON Web Token – why is the payload public?
I can’t understand the reasoning for making the claims/payload of a JWT publicly visible after base64 decoding it. Why? It seems like it’d be much more useful to have it encrypted with the secret. Can...
View ArticleAndroid, PHP session and JSON object retrieval
I am working on an app in android studio.. it currently has a login and registration system that are linked to a database and both work perfectly. I am now trying to carry over the user id value using...
View ArticleMaking a database and related operators using files and JSON in java [closed]
I’m trying to write a program that reads operations from a file. these operators look like below : CREATE TABLE student(id:integer, gpa:decimal, name:string, family:string,isMale:Boolean) INSERT INTO...
View Article