Questions tagged as 'json'

0
answers

Consume WooCommerce REST API with JavaScript

With the WordPress REST API I can simply consume posts or any data available with JavaScript using the Fetch API or something similar (as in the example code). As the WooCommerce REST API has authentication keys, the only way to consume somet...
asked by 17.10.2018 / 03:51
0
answers

return date ajax does not work with more than 4 indices within json

I made a php that returns a Json with 7 indexes, they are all populated correctly, however I can not use the return (date) in javascript, the script only works if I leave 3 of these indices null in php otherwise the javascript for on return of d...
asked by 19.10.2018 / 20:33
1
answer

Data from a Selected RecyclerView

Good afternoon, I need when someone clicks on an AnimeActivity data and is passed to the StartReport screen, could anyone help me? insert the image description here     
asked by 03.10.2018 / 20:36
0
answers

VBA of condition that does search in web site

Good morning, I have the following problem: I need a code that, according to the result of a drop-down list, indicates which number belongs to that selection and then searches the given site for the information it receives. I'll illust...
asked by 11.10.2018 / 19:30
0
answers

How do I delete a song in my library using the Spotify API?

I have the following code: $.ajax({ //url: 'https://api.spotify.com/v1/me/tracks?ids=1ftBvRj542ol7LT1A0EtL7', url: 'https://api.spotify.com/v1/me/tracks', meth...
asked by 03.10.2018 / 16:34
0
answers

Search actionbar to filter array of JSON objects

I'm not able to implement a searchview in the actionbar to filter the listview items I get from a JSON. What could I use? UserHomeActivity package com.example.maxmendes.pokemonfindermax; import android.content.Intent; import android.os.As...
asked by 08.10.2018 / 07:51
0
answers

Adding data to the JSON file in Angular 6

I have a code that sends and receives messages. Can I read a local JSON file With this code in ngOnInit I can read what is inside the JSON file and turn it into a message that is displayed on the screen: ngOnInit() { this.emissor = 'Luis...
asked by 27.09.2018 / 18:35
1
answer

How to add new data in JSON with TypeScript and Angular

I have a JSON look like this: [ { "texto": "Eae", "contato": "Luis", "data": "2018-09-25T21:08:00" },{ "texto": "Salve povo", "contato": "Rogerio", "data": "2018-09-25T21:15:00" }...
asked by 27.09.2018 / 18:46
1
answer

How to group products by id and sum the total quantities of each product coming from a json array in php?

I need to add the quantity of each product that was sold by grouping them by "product_id" and adding their quantities. That is, in the example below I have 4 requests that need to print on the screen + - as follows: Total qtd coca cola : 6 Tot...
asked by 01.10.2018 / 05:31
0
answers

Populating selects - Misalignment when returning values in combobox with chosen.jquery filter

I'm using the chosen component to do the combobox filter, but when it returns the JSON values to populate the combobox, it is misaligning the "duplicating" field. <body> <div id="conteudo"> <p><span cl...
asked by 27.09.2018 / 14:48