jq reshape input for the following strange json

I’m reading a strange JSON from a customer`s API. I found that JQ command line utility could handle this issue. What JQ input can group the same field names for the following JSON? {“dados”: {“cor”:{“cdCor”:”SEM”,”dsCor”:”.”} ,”cor”:{“cdCor”:”RS”,”dsCor”:”ROSE”} ,”cor”:{“cdCor”:”CB”,”dsCor”:”SAVCHUMBO”} ,”cor”:{“cdCor”:”KA”,”dsCor”:”KHAKI”} ,”cor”:{“cdCor”:”SM”,”dsCor”:”MADEIRAS”} ,”grade”:{“cdGrade”:”3″,”dsGrade”:”SEM TAMANHO” ,”itemGrade”:{“cdTamanho”:1,”dsTamanho”:”.”}} ,”grade”:{“cdGrade”:”4″,”dsGrade”:”PADRAO” ,”itemGrade”:{“cdTamanho”:1,”dsTamanho”:”PP”} ,”itemGrade”:{“cdTamanho”:5,”dsTamanho”:”GG”}, “itemGrade”:{“cdTamanho”:137,”dsTamanho”:”13A14ANOS”}}, “tipoClassificacao”:{“cdTipoclas”:3,”dsTipoclas”:”MODELO”}, “tipoClassificacao”:{“cdTipoclas”:2,”dsTipoclas”:”ARTIGO”}, “tipoClassificacao”:{“cdTipoclas”:1,”dsTipoclas”:”DEPART”}, “tipoClassificacao”:{“cdTipoclas”:5,”dsTipoclas”:”MARCA”, “classificacao”:{“cdClassificacao”:”960″,”dsClassificacao”:”FMO”}, “classificacao”:{“cdClassificacao”:”326″,”dsClassificacao”:”DEL RIO”} }} I…

android app crashes after upgrading Constraint layout from 1.1.2 to 1.1.3

App was working fine before upgrading from ‘com.android.support.constraint:constraint-layout:1.1.2’ to ‘com.android.support.constraint:constraint-layout:1.1.3’ I got no line error just this system error: java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.support.constraint.ConstraintLayout$LayoutParams at android.support.constraint.ConstraintLayout.getTargetWidget(ConstraintLayout.java:1144) at android.support.constraint.ConstraintLayout.setChildrenConstraints(ConstraintLayout.java:1028) at android.support.constraint.ConstraintLayout.updateHierarchy(ConstraintLayout.java:803) at android.support.constraint.ConstraintLayout.onMeasure(ConstraintLayout.java:1561) at android.view.View.measure(View.java:24973) at android.support.constraint.ConstraintLayout.internalMeasureChildren(ConstraintLayout.java:1227) at android.support.constraint.ConstraintLayout.onMeasure(ConstraintLayout.java:1572) at android.view.View.measure(View.java:24973) at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715) at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461) at android.view.View.measure(View.java:24973) at android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java:1059) at android.view.View.measure(View.java:24973) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7139) Can…

How to add image view in collapsingToolbar layout title?

I have this collapsingToolbar layout I just want to add “rupee” symbol before “6.45” . But i don’t know how to add this image, please help me with that. XML <?xml version=”1.0″ encoding=”utf-8″?> <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent” android:fitsSystemWindows=”true” tools:context=”.Ads.AdsHomeActivity”> <com.google.android.material.appbar.AppBarLayout android:id=”@+id/app_bar” android:layout_width=”match_parent” android:layout_height=”200dp” android:fitsSystemWindows=”true” android:theme=”@style/AppTheme.AppBarOverlay”> <com.google.android.material.appbar.CollapsingToolbarLayout android:id=”@+id/collaps_toolbar_layout” android:layout_width=”match_parent” android:layout_height=”match_parent” android:fitsSystemWindows=”true” app:contentScrim=”?attr/colorPrimary” app:layout_scrollFlags=”scroll|exitUntilCollapsed” android:textAlignment=”gravity”…

Docker error with mysql connexion when docker-up

I have a problem with docker and mysql (i am pretty new with docker) I am trying to use symfony 3.4 with docker. I have this error : In AbstractMySQLDriver.php line 103: An exception occured in driver: SQLSTATE[HY000] [2002] php_network_getaddre sses: getaddrinfo failed: Name does not resolve In PDOConnection.php line 47: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo…

django sitemap DoesNotExist at /sitemap.xml

when i add sitemap to my Django project i got this error .. DoesNotExist at /sitemap.xml Site matching query does not exist. sitemap.py : from django.contrib.sitemaps import Sitemap from .models import Homepage class DynamicSitemap(Sitemap): changefreq = “monthly” priority = 0.5 def items(self): return Homepage.objects.all() url.py : from first_app.sitemaps import DynamicSitemap from django.contrib.sitemaps.views import sitemap sitemaps…

Take one array and return 3 equal arrays if the array is not divisible by three, increase the size of the smaller array?

I have a challenge I cannot solve: Create​ ​a​ ​function​ ​that​ ​accepts​ ​a​ ​single​ ​array​ ​as​ ​an​ ​argument.​ ​Given​ ​an​ ​array​ ​of​ ​integers,​ ​x,​ ​sort x​ ​and​ ​split​ ​the​ ​integers​ ​into​ ​three​ ​smaller​ ​arrays​ ​of​ ​equal​ ​length.​ ​If​ ​the​ ​length​ ​of​ ​x​ ​is​ ​not​ ​evenly divisible​ ​by​ ​three,​ ​increase​ ​the​ ​size​ ​of​ ​the​ ​smaller​ ​arrays​…