grails 3 json serializer no class attribute

Is there a reason why the class attribute is not rendered in Json anymore in grails 3? I use grails 3.3 Example: Domainclass Class A { String name } then: A a = new A(name: "test") JSON.use('deep') { render a as JSON } gives me: {...
more »

2017-08-11 17:08 (1) Answers

Angular material2 dynamically generate columns

I am using angular material ng-table and wanto to generate columns dynamically. Following example contains html template. This is working example of "statically" defined table template. I want to replace all columnd definitions with something like co...
more »

2017-08-11 12:08 (1) Answers

Accessing a JSON object based on one key-value

I have incoming json objects. What i want to do is to filter the JSON based on its key. For example I have three incoming json objects. Sending message: {"deviceId":"test","temperature":11,"latitude":50,"longitude":19,"time":1,"id":398} Sending mes...
more »

2017-08-11 07:08 (4) Answers

Strange Google Play Batch IAP API Error

According to the documentation for the Google Play Developer API, I should be able to batch insert or update requests. However, I’m running into an issue where it appears that either the documentation is wrong, the API is broken, or I’m just miss...
more »

2017-08-11 01:08 (1) Answers

jQuery autocomplete with getJSON

I have a json named names.json and I need to do an input with autocomplete that looks for 'name' values inside the json. How do I do that? I Tried: $(function () { var getData = function (request, response) { $.getJSON( "/cities.json...
more »

2017-08-10 19:08 (1) Answers

How can I display image urls from JSON data?

I've created a HTML page that displays JSON array data in table. The arrays includes ID, Title, and an image. It looks great but the image is currently just text, when I need it to display the actual image of the link. I have no idea how to tackle th...
more »

2017-08-10 18:08 (4) Answers

Json unable to pass array to php

As the title says, I failed to pass the data array via json ajax to php. I am using codeigniter, what did I do wrong? here is the jQuery code: function load_page_data1(){ var data = []; data['val'] = "solid_t1"; $.ajax({ ty...
more »

2017-08-10 05:08 (3) Answers

C# Web API POST method for Json Multiple Array

I am working on a project which requires POST method for a multiple-array Json where the data are located on 5 different relating tables with FK. here is the Json output using GET: { "UserId": 1, "Id": 1, "ValueStoryName": "Value Story 101", ...
more »

2017-08-10 05:08 (2) Answers

Can't pass List<model> from AngularJS to .NET MVC

I know this question has been asked a hundred times on SO, but none of the solutions have helped me. I'm trying to do something that ought to be simple: pass a list of objects from my AngularJS (aka Angular 1) front-end to a .NET MVC controller endpo...
more »

2017-08-09 22:08 (3) Answers

Login Security using jsonwebtoken

I am currently working on a website using React where I want to be able to have user login. Right now my strategy is to send form data to the server (express) on submit, and if the info matches a user in my DB, the server sends back a signed JWT with...
more »

2017-08-09 17:08 (0) Answers

Restrict JSON attributes for @RequestBody

This may be a simple task, but I couldn't find a way to do it. Basically, I need to disallow some parameters at the time of using @RequestBody annotation in my controller. Here is my model: @Data public class MyModel { private int id; private S...
more »

2017-08-09 10:08 (1) Answers

How to "refresh" div without double click?

I will try to make this as clear as I possibly can. But right now, I have a table being displayed when it's called into HTML. However, when someone types in a president name, I want the fully listed table to go away and display the results that is fi...
more »

2017-08-09 06:08 (3) Answers

How to skip first n objects in jq input

I have a VERY large stream of objects, which I am trying to import into MongoDB. I keep getting a broken pipe after about 10k objects, so I would like to be able to update my import script to skip the already imported objects and begin with the firs...
more »

2017-08-09 03:08 (1) Answers

Google Chrome 60.0.3112.90 VueJS bug

I am using VueJS and the $http package to do API calls to my website. However, it seems that on Google Chrome 60.0.3112.90, the data property of the Response object no longer parses the received JSON and instead passes back a string. Is this a bug ...
more »

2017-08-08 23:08 (1) Answers

RegEx to remove hyphens between two strings

I have a string where I need to replace all hyphens, but only between two delimiters, "clients_field_" and ":" For example: "clients_field_4741a6c5-3855-4455-b487-0b38b0038ae6": "", "clients_field_78f225e0-1a78-4930-b251-ad2217baeb1...
more »

2017-08-08 20:08 (2) Answers

Extracting values from JSON response with PHP

I'am sending JSON data to an URL and then I also recieve JSON. I'm using PHP CURL to recieve the data and show it on my page. My Problem is that I can only get the json completely and I can't show only a selected value from that JSON data. I got this...
more »

2017-08-08 14:08 (2) Answers

Dynamically set schedule in Azure Function

I have following function.json for my Azure function whose schedule is set to run at 9.30 daily. What I want is to dynamically set the schedule attribute of this json. This scenario arises when a client who is using my application enters date, on tha...
more »

2017-08-08 11:08 (1) Answers

AngularJs databinding from json into view

This is probably a very obvious question, but I couldn't find an answer anywhere. I am just trying to load some JSON data from my server into the client. How do I get all three slides in my view with angularJs? Help will be much appreciated. As it ...
more »

2017-08-08 04:08 (1) Answers