• JavaScriptPHPHTMLCssPythonWordPressWeb developmentLinuxMySQLAndroid
    WindowsJavaC++ / C#LayoutReactUbuntuYiiDjangoProgramming1C-Bitrix
    LaravelSystem administrationTelegramJSONDebianPostgreSQLIOSGoogleHtaccessWindows Server
    GitMacOSGoogle ChromeCMSWooСommerceBootstrapNginxSQLUnityAPI
  • Ask
  • Leaders

Categories

JavaScriptPHPHTMLCssPythonWordPressWeb developmentLinuxMySQLAndroidWindowsJavaC++ / C#LayoutReactUbuntuYiiDjangoProgramming1C-BitrixLaravelSystem administrationTelegramJSONDebianPostgreSQLIOSGoogleHtaccessWindows ServerGitMacOSGoogle ChromeCMSWooСommerceBootstrapNginxSQLUnityAPI
Programming
JavaScript PHP HTML Css Python WordPress Web development Linux MySQL Android Windows Java C++ / C# Layout React Ubuntu Yii Django Programming 1C-Bitrix Laravel System administration Telegram JSON Debian PostgreSQL IOS Google Htaccess Windows Server
Make a leaderReport
M
M
Mark Ivanych2014-09-12 09:17:41
Java
Mark Ivanych, 2014-09-12 09:17:41

Gson: Why is Integer converted to Double?

Hello,

Map array = new Gson().fromJson("{\"value\":2}", HashMap.class);
System.out.println(array); // {"value":2.0}

Why "value":2.0? How is it treated?

Reply
Answer the question

Answer the question

In order to leave comments, you need to log in

0 answer(s)
Similar questions
M
manah912020-05-09 17:18:20
What does the error java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference mean? 0Reply
S
Sergey Larionov2021-07-13 07:21:00
HashMap phone directory? 1Reply
F
Fastto2012-02-13 12:54:28
Looking for comparison JAVA VS C# 6Reply
D
dimasik1002002018-03-19 17:18:25
How to make the images in the recycler view (grid layout) so that the images are of the same shape in the form of a square? 0Reply

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question

banners