Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8829913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:56:42+00:00 2026-06-14T07:56:42+00:00

At the moment, I’ve got a JSON file with content looking like this: {

  • 0

At the moment, I’ve got a JSON file with content looking like this:

{
"username": "test", 
"someNumber": 100
}  

I’m using JSON.Net to fetch the .JSON file from a webserver – C#:

        var http = new HttpClient();
        http.MaxResponseContentBufferSize = Int32.MaxValue;
        var response = await http.GetStringAsync(URI);

        var result = JsonConvert.DeserializeObject<DatClass.Result>(response);

This works great together with the class getting/setting the properties.
However, what I would like to know is whether there’s a good way for a user to update the .JSON file through a textbox UI?
As in:

[textbox – update username] [update button] -> username sent to server -> .JSON file updated -> [textblock – showing updated username in UI].

I’m not looking for exact code solutions, I’m rather looking for good solutions on this, and/or if this is a terrible idea of an easy database(?).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T07:56:43+00:00Added an answer on June 14, 2026 at 7:56 am

    Ok. Now I get it 🙂

    So you want to have a DB. Then read this. 3 methods

    1. Your way. You want to use JSON files. Ok it will work but it’s a bad way imo. if you’ll have 1 MB file (it’s not so big) than every time you’ll have to read it, deserialize, update data, serialize and write it again. It isn’t a good way.

    2. SQLite. If you want a local database use SQLite. I’m in phase of testing it and it looks good. A disadvantage is poor orm. You need to manage few things by yourself but it work nice. This is a local database so it’s not a bad way to go

    3. Azure DB. Main disadvantage is that you app is depended on internet connection and you need to create an API that will provide connection with the DB cause Windows Store Apps can’t connect to them by themself. You need also consider creating cache engine cause asking for thata every time is pointless. you can get data and cache them for some views. that way app will work faster

    // EDIT

    in your updated case you have 2 solutions

    1. Use SQLite as a smaller local cache for the data from web. It will make your app more independent from internet connection
    2. Just go for internet dependend app

    In all of this cases you need a db in web and some api to connect with it

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At the moment my application.js file looks like this: //= require_tree ./vendor //= require_directory
At the moment I have some test code that starts something like this: CheckBoxPreference
At the moment I'm using bat file to launch my jar and set the
for the moment the script does like this: click on the link edit the
The moment I added a unit test to my ASP.NET MVC application to test
At the moment I'm working on Asp.Net MVC using: Repository, Unit-Of-Work patterns, Service Layer
at the moment i am using a while (true) loop to do this. I
At the moment I have this: try{ // Create file FileWriter fstream = new
This moment if user enter's correct username and password i just simply creating session:
At the moment I am using this to call the TabHost activity to change

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.