Data dodania Pytanie
2018-02-14 12:02 how to check if a certain key-value pair exists in array of hashes as json in ruby on rails »
I have an array of hashes as json, so how to check my array of hashes contains a hash with a given key-value pair. This is my json [{"question"=>...
(5) odpowiedzi
2018-02-13 19:02 Instead of JSON response to POST request, what are my options for React? »
Client-side I have a <form method="POST" action="/register"> which makes an SQL query. Server-side I have this: router.post('/register', func...
(1) odpowiedzi
2018-02-13 18:02 Add new value into json »
I'm tiying to build an excel uploader app. Right now, I can get the data from the excel file and send it to an API to store the info. But i need some...
(4) odpowiedzi
2018-02-11 21:02 Laravel recovering the id of the return of a json »
I'm having a problem retrieving data from a select. When I perform the following select $Projeto = $this->ModelProjeto ->select('projeto.*','t...
(2) odpowiedzi
2018-02-11 12:02 Get corresponding time and value from json using Django (Python 2) »
The following is a sample of the JSON that I'm fetching from the source. I need to get certain values from it such as time, value, value type. The tim...
(1) odpowiedzi
2018-02-11 01:02 python2.7 response to client first then process (shopify webhook) »
I am building a webhook to connect Shopify with my dispatch. Shopify Webhook sends a json request and wait for 5 seconds, if it doesn't receive 200 ba...
(1) odpowiedzi
2018-02-10 21:02 JSON missing a template for this request format and variant coming from React using Stripe »
i am working on an online store in React with backend in Rails and i use Stripe. After i send the fetch request towards my charges controller gets sen...
(1) odpowiedzi
2018-02-10 08:02 JavaScript method to import a local JSON file every x amount of minutes »
I'm fairly new to JavaScript and I've been hunting around for a solution for this problem: I have names and numbers being written to a data.json file...
(2) odpowiedzi
2018-02-09 17:02 Content Negotiation - xml for a class is not returning a value »
The api I'm working on allows a consumer to return json or xml. If the user selects json then and if ChildItems is null, it returns null. If the user...
(0) odpowiedzi
2018-02-08 11:02 Determine user input data-type dynamically in JAVA »
I've written the following code to determine the data-type of input entered by the user. Update: Removed parsing into Float since a Double value ca...
(4) odpowiedzi
2018-02-07 21:02 Laravel create eloquent object from JSON »
I have this JSON object at client side: I send that ajax JSON object to Controller like: $.ajax({ type: "GET", url: url, ...
(1) odpowiedzi
2018-02-07 19:02 accessing JSON through javascript in ejs file »
Hello I would like to get any help to get through this issue with my code. so this is my server file with node js //setup var express = require("ex...
(1) odpowiedzi
2018-02-07 11:02 Converting NSData to NSDictionary »
I am trying to fetch data from an url https://dl.dropboxusercontent.com/s/2iodh4vg0eortkl/facts.json I am getting nil while converting nsdata to nsdi...
(1) odpowiedzi
2018-02-06 09:02 How to pass an external JSON file into a javascript variable that can be accessible anywhere »
I have a json file which I have been using in my project in this structure <script src="js/main.js"></script> <script> va...
(2) odpowiedzi
2018-02-06 04:02 Group array of items by their distinct id »
How do I go about re-arranging my array to by organized by shirt size: [ { shirt_id: 1, size: "small" }, { shirt_id: 1, size: "medium" }, { shi...
(2) odpowiedzi
2018-02-05 23:02 Dealing with JSONish things in PHP »
I'm using PHP to consume a service that is not mine. This service returns things that are almost, but not quite, entirely unlike JSON (hat tip, HGG)....
(2) odpowiedzi
2018-02-05 17:02 Cannot access the items of the json array declared in EJS inside Javascript script tags »
<div> var arrayContent='<%= myJsonArray %>' <!--myJsonArray is sent to this ejs file using the render function in index.js whil...
(2) odpowiedzi
2018-02-05 10:02 Separating the serialization metadata from the implementation of a data contract? »
I want to define a contract for a DTO which a consuming API project will implement and return as JSON. From my perspective there are three concerns h...
(1) odpowiedzi
2018-02-04 07:02 Multiple query result in a single result json »
Below is my request tag. <Request method="GET" > <Query> select colA as "a", colB as "b", colC "c" from tableX </Quer...
(1) odpowiedzi
2018-01-31 18:01 How to call REST api result json having c# keywords »
I am trying to access a simple REST Api, https://api.cryptonator.com/api/ticker/btc-usd The result of the same is like this format: {"ticker":{"base...
(1) odpowiedzi
2018-01-31 17:01 Rails Escaping JSON »
I'm working on an external API. They want JSON as a string for a GET request in a query param. The problem with Ruby is that it treats JSON as a str...
(2) odpowiedzi
2018-01-31 10:01 Postgres json_object. Add json field only if value is not null »
Im using jsob_build_object function to generate json from data in my table. select json_build_object('name', p.name, 'birthday', p.birthday) FROM Per...
(1) odpowiedzi
2018-01-31 07:01 How to stream creation of a JSON File? »
Am trying to create a JSON file from a large dump of a database query, and works when I set a LIMIT to 100000 rows being returned, but when I want all...
(2) odpowiedzi
2018-01-31 05:01 Ruby On Rails: Bundler could not find compatible versions for gem "json" »
I did search and none of the existing solutions worked for me, so I created a new question. Got an error trying to launch the server. Bundler cou...
(3) odpowiedzi
2018-01-30 21:01 How to deal with completely dynamic JSON responses »
Maybe someone in the community has had similar struggles and have come up with a workable solution. We're currently working on a polyglot key/value s...
(2) odpowiedzi
2018-01-30 15:01 How to query nested json attribute on postgres / ruby on rails »
My json for an attribute in a record looks as so: { foo: bar, foo1: [{key1: value, key2: value}, {key1: value, key2: value}] } i ...
(2) odpowiedzi
2018-01-30 15:01 Datatable checkbox doesn't work with ajax »
I'm to use jQuery Datatables for Classic asp and json https://datatables.net/ Non filter datatable worked checkbox but filter column checkbox does n...
(1) odpowiedzi
2018-01-30 06:01 Import json data using c# »
Form a third party system deserialize json data to the object/class format and write data into a SQL Server table from a asp.net web api. When I run t...
(1) odpowiedzi
2018-01-29 22:01 Using fetch() and getting 'Undefined' when calling a value from the JSON data »
I am able to console.log the JSON response from fetch() and it shows that I am in fact receiving the JSON response from the API URL. This is the code...
(2) odpowiedzi
2018-01-27 04:01 Generate JSON booleans from Db »
I need to generate a JSON String using this format: {"content":{"brands":1},"brands":[{"id":"1","name":"brand 1","description":"description","icon":"...
(1) odpowiedzi
2018-01-26 15:01 Push URL doesn't open »
I have a pretty basic PushNotification code that should open an activity when no URL is present, and open an URL when there is one. But it doesn't ope...
(1) odpowiedzi
2018-01-26 10:01 DateTimeOffset is parsed incorrectly in WebAPI »
I have the problem that when I send my json-object to my API, the DateTime is reset by one hour. I already read that I should use DateTimeOffset. I di...
(0) odpowiedzi
2018-01-25 15:01 Inject variables into JSON config file »
We have an AWS Lambda function in place that dynamically builds test environments for our engineers to test their code through GitHub pull requests. ...
(3) odpowiedzi
2018-01-25 13:01 Read specific part of json string with python »
I am currently working on a programme within the django environment which operates off a json api provided by a third party. There is an object within...
(4) odpowiedzi
2018-01-25 11:01 Datatables.net sorting issue (server-side) »
I'm still in deep trouble with that issue. I use datatable.net to display some data from my database (mySql). I do exactely what the API notice me to...
(0) odpowiedzi