JsonPath with Newtonsoft.JSON

I tried for nearly an hour different approaches, but I don't get it ;( my JSON object is this: "typeOfHair": { "value": [ { "code": "Dry Hair", "values": [ { "value": "DryHair"...
more »

2017-04-17 21:04 (2) Answers

how to parse JSON using Volley

i am using volley library for post data over api...in here the Content-Type is "application/json" .... how can i implement this type of json data : URL: Base_URL + dorequisition { "submitted_by_employee_id": 1, "name": "Technolive SF for TC", ...
more »

2017-04-17 21:04 (1) Answers

Check if two json are equivalent

I've two json files. They should be the same regardless formatting and ordering of elements. For example these two jsons are equivalent because attributes and arrays are the same, only their order and the formatting type are different: { "type" :...
more »

2017-04-16 23:04 (2) Answers

Is it okay to validate JSON at PostgreSQL side?

Writing APIs I used to validate all input parameters on the Java (or PHP, whatever) side, but now we moved our DBs to PostgreSQL which gives us great JSON features, like building JSON from table rows and a lot more (I didn't find anything we can't to...
more »

2017-04-16 21:04 (1) Answers

converting json to csv using python pandas

I have referred this: Nested Json to pandas DataFrame with specific format and this: json_normalize produces confusing KeyError to try and normalize my json snippet using json_normalize in pandas. However, the output isn't getting normalized fully....
more »

2017-04-16 14:04 (2) Answers

PHP code adding extra caracters to json string

So I am trying to POST a jsont string from my MacOS app to my server and than the server sends me that string in an email. The php code looks like this: <?php $postVar = $_POST['data']; if (!empty($postVar)) { $to = '<myemailaddress>'...
more »

2017-04-16 11:04 (1) Answers

How to easily label geoJSON with Leaflet?

This map is of Population Totals in a neighborhood. The layer 'Population2000Layer' includes the attribute field 'Total'. Just need to reach in there and display the total at the polygon's center with some like choroplethize(feature.properties.Tota...
more »

2017-04-16 02:04 (0) Answers

PostgreSQL indexing JSONB array

Here is my json jsondata ------------------------------------ {"key1": 1, "keyset": [10, 20, 30]} {"key1": 1, "keyset": [10, 20]} {"key1": 1, "keyset": [30]} {"key1": 1 } {"key1": 1, "key2": 1} I tried creating index keyset for above example 1st ...
more »

2017-04-15 20:04 (1) Answers

Vue.js exclude settings file from being bundled

I am using the vue-webpack template and I have created a settings.json file to store environment variables that should be changed when installing the script. My settings.json (just store the absolute path to the API server): { "apiURL": "//localh...
more »

2017-04-15 17:04 (1) Answers

Rules due to Annotations with JSON and Spring

I have following JSON object {"type":"success","value":{"id":5,"quote":"Spring Boot solves this problem. It gets rid of XML and wires up common components for me, so I don't have to spend hours scratching my head just to figure out how it's all piec...
more »

2017-04-15 11:04 (0) Answers

Recreate My Git Repo From this Commit Json file

So I messed up, bit time. I force pushed a new git repo over my existing one. I never should have done that. I was able to recover this json file that has the text of all of my files in it. How can I recreate my git repo or get all the files out in a...
more »

2017-04-15 03:04 (1) Answers

Parsing nested JSON with Alamofire 4

So I have been trying all day to parse JSON from my WordPress REST API using Alomofire 4, I have tried everything I could find that is/was related to my issue yet I still can't manage to fix my issue. The goal is just to do a request from the API an...
more »

2017-04-14 21:04 (2) Answers

Getting JSON values from url

this is the first time using Stackoverflow, so if I am doing something wrong asking this question, let me know! :) Let's get to the question. I am developing a public API, with php and json. This is the first time for me using json with php, so I a...
more »

2017-04-14 15:04 (3) Answers

a string member is not deserialized as expected

I have this json "staff=true":{"is_dup":false,"weight":600,"active":true,"comment":"","state":"pushed","value":"linqmap.proto.voice.VoicePrompts$VoicePromptsConfig { \\\nprompts {\n id: \"eng_arnold_schwarzenegger\"\n name: \"Terminator\"\n lang:...
more »

2017-04-13 23:04 (0) Answers

Need help in parsing a JSON file

I am working on a file that has data in a JSON format but the JSON parser is unable to recognize the data due to the following 1-The objects are padded with an extra backslash 2-The object start and end braces are in quotes {"menu":"{ }"} I used ...
more »

2017-04-13 21:04 (1) Answers