How can we get this type of json data?

Please help me to sort out this issue. See this example below, I wanted to get this data in listview. How can we do this? {“Afpak”:{“id”:1,”race”:”hybrid”,”flavors”:[“Earthy”,”Chemical”,”Pine”],”effects”:{“positive”:[“Relaxed”,”Hungry”,”Happy”,”Sleepy”],”negative”:[“Dizzy”],”medical”:[“Depression”,”Insomnia”,”Pain”,”Stress”,”Lack of Appetite”]}},”African”:{“id”:2,”race”:”sativa”,”flavors”:[“Spicy/Herbal”,”Pungent”,”Earthy”],”effects”:{“positive”:[“Euphoric”,”Happy”,”Creative”,”Energetic”,”Talkative”],”negative”:[“Dry Mouth”],”medical”:[“Depression”,”Pain”,”Stress”,”Lack of Appetite”,”Nausea”,”Headache”]}}}

angular 1 send data json to php file procress

I have 3 file ( 1 file use angular1, 2 file php (1 file is show interface, 1 file is data processing). I want pass json from file angular to file php process). I use Yii1 framework Angular 1 file `$scope.addDate = function(){ $http({ method:”POST”, url:”/fresher819/site/Report”, data:JSON.stringify($scope.getDate), headers : {‘Content-Type’:’application/x-www-form-urlencoded; charset=UTF-8′} }).then(function(response){ $scope.ngay = JSON.stringify(response);…

Why Modsecurity does not deny SQL injection on JSON payload

I have an web application running behind an apache/modsecurity firewall configured with OWASP CRS. The following URL is deny by Modsecurity: GET /login?username=’ /*!or*/1=1# But this one pass the firewall: POST /login Body: {“password”:”‘ /*!or*/1=1#”} Is there a limitation on Modsecurity about JSON Body? Tx UPDATE 1: I have the latest OWASP CSR deployed: Producer:…

How query with Spring JPA on jsonb columns?

I’m using spring JPA with postgresql database. I have an Entity as follow: @Entity @TypeDef(name=”json_binary”, typeClass=JsonBinaryType.class) public class LiveTokens { @Id @GeneratedValue() private Long id; private String username; @Type(type=”json_binary”) @Column(columnDefinition = “jsonb”) private Token token } and Token: public class Token { private Long expireTime; private String accessToken; } Now I want to get All…