Category : json

{ "body": "{"data": [[1633209578,0,117.000000],[1633209578,1,116.000000],[1633209624,2,121.000000],[1633209643,3,174.000000],[1633209682,4,222.000000],[1633209715,5,247.000000],[1633209748,6,248.000000],[1633209781,7,248.000000],[1633209814,8,249.000000],[1633209847,9,248.000000],[1633209877,10,248.000000],[1633209912,11,248.000000],[1633209943,12,248.000000],[1633209990,13,248.000000],[1633210009,14,248.000000]]}" } i want to send above json to aws apigateway via POST request. Please help me to make this object in android studio java. Thanks. Source: Android..

Read more

So I am trying to get options for clothing sizes from JSON into a spinner fun fetchJson(){ val productSlug = intent.getStringExtra(CustomViewHolder.Productslug) val productDetailURL = "https://50e7c81d-5625-4da0-a1b6-0753f1357661.mysimplestore.com/api/v2/products/$productSlug?app=vnext&timestamp=1601579833487" val client = OkHttpClient() val request = Request.Builder().url(productDetailURL).build() client.newCall(request).enqueue(object: Callback { override fun onResponse(call: Call, response: Response) { val body = response.body?.string() Log.d("TAG", "this is the $productDetailURL") val gson = ..

Read more

i try to parse the json file as a string to use it to display this date in listview public class QueryUtils { private QueryUtils(){ } private final static String QUERY_UTILS_URL = "{ "kind": "books#volumes", "totalItems": 392, "items": [ { "kind": "books#volume", "id": "qKFDDAAAQBAJ", "etag": "REv5wZ4Dkek", "selfLink": "https://www.googleapis.com/books/v1/volumes/qKFDDAAAQBAJ", "volumeInfo": { "title": "Android", "authors": [ "P.K. ..

Read more

I have a JSONObject called object. It has alot of objects of the class Books. This is the print of the first element : I/System.out: {"id":"1","author":"Paula Hawkins","description":"EVERY DAY THE SAMEnnRachel Soon she is deeply entangled not only in the investigation but in the lives of everyone involved. Has she done more harm than good?","publication_date":"13/01/2015","title":"The girl ..

Read more