简体   繁体   English

如何从URL编辑Json密钥(Android Studio)

[英]How to edit a Json key from an URL ( Android Studio )

So here's the deal , I already generated this Json URL : 所以这是交易,我已经生成了这个Json URL:

https://api.myjson.com/bins/w7wuz https://api.myjson.com/bins/w7wuz

And I did some code om my app in order to read it. 而且我在我的应用程序中做了一些代码以便阅读。 So far so good. 到现在为止还挺好。

But I'm struggling a bit , trying to edit a key on my Json URL , to see if my app would update the value as well . 但是我有点努力,试图在我的Json URL上编辑一个密钥,看看我的应用程序是否也会更新这个值。

I hope I was clear with what I pretend. 我希望我对自己的装扮很清楚。 Thanks guys . 多谢你们 。

Add a new parameter to your URL then possible otherwise not possible in my view. 在您的网址中添加一个新参数,然后在我看来是不可能的。

Like : 喜欢 :

https://api.myjson.com/bins/w7wuz?id=1
https://api.myjson.com/bins/w7wuz?id=2&name=kaushal

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM