All Questions
Tagged with android-studio json
786
questions
0
votes
1
answer
21
views
How to pass JSON data into mvvm model with multipart in Android kotlin?
My JSON data I will pass into an API:
{
"restaurantId" : "073d9089-e318-4133-9364-671b4c47a874",
"name" : "Sayaji",
"address" : "...
0
votes
0
answers
26
views
How to display deserialized JSON data in a RecyclerView using Kotlin?
I am currently working on a project that requires a search feature that retrieves JSON data from a website. The app is supposed to display that data using a RecyclerView. However, Android studio ...
0
votes
1
answer
47
views
Trying to save a LocalDateTime but the values saved to json are blank [duplicate]
In android studio I am trying to save the input of a calender view as a LocalDateTime as Json using internal storage, but I am facing a problem. I have the calenderView created and have it set so that ...
-1
votes
2
answers
83
views
Deserializing Json String in Android Studio - Java
I am trying to deserialize a Json String using GSONbut after deserialization all values appear as Null. This is the Json String (I obtain this String from a server through a Rest API):
{"...
2
votes
1
answer
1k
views
(Kotlin) com.google.gson.internal.LinkedTreeMap cannot be cast to com.example.phonetest2.model.HallData
My data class:
data class HallData(
var name:String,
var mobile:String,
var isAddInfoChecked:Boolean,
var isFanDetailChecked:Boolean,
var fanNumber:String,
var isPompDetailChecked:Boolean,
var ...
0
votes
2
answers
40
views
how to parse json data like image in recycleview into new activity kotlin
i parse json data from https://dummyjson.com/products into recycleview . it show product list . then i set onclcik listener on item and parse image and description, price into new activity . The price ...
2
votes
1
answer
988
views
Can the Network Profiler in Android Studio be used to modify responses, headers, or status codes similar to Charles?
let's say there is an api call like
"https://example.com/part?pid=212"
and the response is a json object like:
{
"name":"Calvin",
"flag" : true
}
I'm ...
0
votes
2
answers
65
views
Overwrite JSON object without replacing the file completely Android Studio
Basically I am trying to overwrite the following JSON data
{
"name" : "John Doe",
"gender" : "male",
"age" : "21"
}
My goal is ...
0
votes
1
answer
33
views
Loop through JSON array from API Retrofit
I'm having problem with parsing my JSON Array from an API call. The response from the API look like this
{
"SUCCESS": [
{
"user_id": "susan",
"...
0
votes
1
answer
82
views
android kotlin: error Value null at Scores of type org.json.JSONObject$1 cannot be converted to JSONObject
I am having a static JSON file which has an array which I am passing to Recycler view. For some attributes of JSON objects in the array are null which are causing this error
Value null at Geocode of ...
0
votes
0
answers
240
views
Unable to load asset en.json
I have declared my assets in pubspec.yaml the right way and I have declared it in my app... the app runs but on the emulator I get a message Unable to load assets: "assets/translation/en.json&...
0
votes
0
answers
66
views
How to get the result in string form from JSON?
I'm studying android development and studying the program code listed below. Please tell me how to get a string value from this code fragment.
That is, String GSMINFO = "type = gsm, lac = ..., ...
0
votes
0
answers
42
views
how to create filter records [duplicate]
i want to create filter record for my database realtime database firebase in my android program
but I don't understand how to use it and place it, can you guys help me in dealing with this case
0
votes
1
answer
51
views
How to parse complex data from Json via volley library in android studio?
I want to fetch data from api through volley library.
I am retrieving a JSON Object And Json Arrray via the Volley class in Android .I know how to get request but I am really struggling to parse this ...
0
votes
1
answer
231
views
How to map each column of json array in kotlin
greetings fellow pro coders,
I have a question regarding the mapping of each key/value of json array in kotlin. Below are my code.
val startDate = view.findViewById<TextView>(R....