RSS

Posts in 2021

  • Most votes on kotlin questions 2

    May 01, 2021 in FAQ

    Most votes on kotlin questions 2. #11 Kotlin - Property initialization using "by lazy" vs. "lateinit" #12 What is the difference between "const" and "val"? #13 Smart cast to 'Type' is impossible, because 'variable' is a mutable property that could have been changed by this time #14 Val and Var in Kotlin #15 How to initialize an array in Kotlin with values? #16 Default interface methods are only supported starting with Android N #17 How do I initialize Kotlin's MutableList to empty MutableList? #18 Sort collection by multiple fields in Kotlin #19 Kotlin and new ActivityTestRule : The @Rule must be public #20 Android Get Current timestamp?

    Read all the top votes questions and answers in a single page. #11: Kotlin - Property initialization using "by lazy" vs. "lateinit" (Score: 347) Created: 2016-04-14 Last updated: 2020-07-23 Tags: properties, kotlin In Kotlin if …

    Read more

  • Most votes on kotlin questions 10

    May 01, 2021 in FAQ

    Most votes on kotlin questions 10. #91 Kotlin Data Class from Json using GSON #92 Kotlin secondary constructor #93 How to make "inappropriate blocking method call" appropriate? #94 when to use an inline function in Kotlin? #95 Kotlin asterisk operator before variable name or Spread Operator in Kotlin #96 Android Room - Select query with LIKE #97 "Not enough information to infer parameter T" with Kotlin and Android #98 In Kotlin, how do I read the entire contents of an InputStream into a String? #99 Difference between a class and object in Kotlin #100 Example of when should we use run, let, apply, also and with on Kotlin

    Read all the top votes questions and answers in a single page. #91: Kotlin Data Class from Json using GSON (Score: 122) Created: 2017-05-22 Last updated: 2018-04-15 Tags: java, json, gson, kotlin, data-class I have Java POJO class like this: class …

    Read more

  • Most votes on kotlin questions 1

    May 01, 2021 in FAQ

    Most votes on kotlin questions 1. #1 Place cursor at the end of text in EditText #2 Unfortunately MyApp has stopped. How can I solve this? #3 What is the equivalent of Java static methods in Kotlin? #4 Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6 #5 Kotlin Ternary Conditional Operator #6 How to check if a "lateinit" variable has been initialized? #7 How to make an Android device vibrate? with different frequency? #8 How to launch an Activity from another Application in Android #9 How to convert a Kotlin source file to a Java source file #10 Alarm Manager Example

    Read all the top votes questions and answers in a single page. #1: Place cursor at the end of text in EditText (Score: 943) Created: 2011-06-02 Last updated: 2021-01-26 Tags: java, android, kotlin, android-edittext, keylistener I am changing the …

    Read more

  • Most votes on json questions 9

    May 01, 2021 in FAQ

    Most votes on json questions 9. #81 Is there a way to automatically build the package.json file for Node.js projects #82 Can you use a trailing comma in a JSON object? #83 Javascript: How to generate formatted easy-to-read JSON straight from an object? #84 ASP.NET MVC controller actions that return JSON or partial html #85 Fatal error: Maximum execution time of 30 seconds exceeded #86 Convert array to JSON #87 What are the differences between JSON and JSONP? #88 Should I declare Jackson's ObjectMapper as a static field? #89 JSON datetime between Python and JavaScript #90 JSON: why are forward slashes escaped?

    Read all the top votes questions and answers in a single page. #81: Is there a way to automatically build the package.json file for Node.js projects (Score: 425) Created: 2012-04-01 Tags: json, node.js, npm Is package.json supposed to be manually …

    Read more

  • Most votes on json questions 8

    May 01, 2021 in FAQ

    Most votes on json questions 8. #71 Parsing JSON giving "unexpected token o" error #72 JsonMappingException: No suitable constructor found for type [simple type, class ]: can not instantiate from JSON object #73 XSLT equivalent for JSON #74 Can I get JSON to load into an OrderedDict? #75 json_decode to array #76 Convert JSON string to dict using Python #77 JSON Naming Convention (snake_case, camelCase or PascalCase) #78 How can I parse a JSON file with PHP? #79 Fastest way to check if a string is JSON in PHP? #80 Gson: How to exclude specific fields from Serialization without annotations

    Read all the top votes questions and answers in a single page. #71: Parsing JSON giving "unexpected token o" error (Score: 455) Created: 2013-03-25 Last updated: 2016-11-08 Tags: javascript, json I am having a problem parsing simple JSON …

    Read more

  • Most votes on json questions 7

    May 01, 2021 in FAQ

    Most votes on json questions 7. #61 Representing null in JSON #62 jQuery AJAX cross domain #63 How can I pretty-print JSON using node.js? #64 How to convert jsonString to JSONObject in Java #65 How do I cast a JSON Object to a TypeScript class? #66 Google Gson - deserialize list<class> object? (generic type) #67 Difference between JSON.stringify and JSON.parse #68 Infinite Recursion with Jackson JSON and Hibernate JPA issue #69 Chrome sendrequest error: TypeError: Converting circular structure to JSON #70 Error while installing json gem 'mkmf.rb can't find header files for ruby'

    Read all the top votes questions and answers in a single page. #61: Representing null in JSON (Score: 487) Created: 2014-01-14 Last updated: 2021-01-21 Tags: json, jackson, gson What is the preferred method for returning null values in JSON? Is there …

    Read more

  • Most votes on json questions 6

    May 01, 2021 in FAQ

    Most votes on json questions 6. #51 Saving utf-8 texts with json.dumps as UTF8, not as \u escape sequence #52 Return JSON response from Flask view #53 What is JSON and why would I use it? #54 How do I iterate over a JSON structure? #55 JSON.NET Error Self referencing loop detected for type #56 Finding the max value of an attribute in an array of objects #57 Proper way to return JSON using node or Express #58 How can I parse JSON with C#? #59 Creating a JSON response using Django and Python #60 Add new attribute (element) to JSON object using JavaScript

    Read all the top votes questions and answers in a single page. #51: Saving utf-8 texts with json.dumps as UTF8, not as \u escape sequence (Score: 582) Created: 2013-08-20 Last updated: 2021-02-10 Tags: python, json, unicode, utf-8, escaping Sample …

    Read more

  • Most votes on json questions 5

    May 01, 2021 in FAQ

    Most votes on json questions 5. #41 Using Node.JS, how do I read a JSON file into (server) memory? #42 Fetch: POST JSON data #43 Can I set an unlimited length for maxJsonLength in web.config? #44 How to "pretty" format JSON output in Ruby on Rails #45 Binary Data in JSON String. Something better than Base64 #46 Ignoring new fields on JSON objects using Jackson #47 Pretty-Printing JSON with PHP #48 How to check if a string is a valid JSON string in JavaScript without using Try/Catch #49 Preferred method to store PHP arrays (json_encode vs serialize) #50 Cannot use object of type stdClass as array?

    Read all the top votes questions and answers in a single page. #41: Using Node.JS, how do I read a JSON file into (server) memory? (Score: 703) Created: 2012-04-04 Last updated: 2020-06-20 Tags: javascript, json, node.js Background I am doing some …

    Read more

  • Most votes on json questions 4

    May 01, 2021 in FAQ

    Most votes on json questions 4. #31 Ajax request returns 200 OK, but an error event is fired instead of success #32 Posting a File and Associated Data to a RESTful WebService preferably as JSON #33 What is the difference between YAML and JSON? #34 Use of PUT vs PATCH methods in REST API real life scenarios #35 How to POST JSON data with Python Requests? #36 Jackson with JSON: Unrecognized field, not marked as ignorable #37 Is there any standard for JSON API response format? #38 Are multi-line strings allowed in JSON? #39 How can I print a circular structure in a JSON-like format? #40 How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?

    Read all the top votes questions and answers in a single page. #31: Ajax request returns 200 OK, but an error event is fired instead of success (Score: 851) Created: 2011-05-31 Last updated: 2020-04-17 Tags: javascript, jquery, asp.net, ajax, json I …

    Read more

  • Most votes on json questions 3

    May 01, 2021 in FAQ

    Most votes on json questions 3. #21 How to compare arrays in JavaScript? #22 How to reformat JSON in Notepad++? #23 How do I turn a C# object into a JSON string in .NET? #24 Deserialize JSON into C# dynamic object? #25 Parsing JSON with Unix tools #26 How to parse JSON using Node.js? #27 How to make a class JSON serializable #28 Returning JSON from a PHP Script #29 How to overcome "datetime.datetime not JSON serializable"? #30 How to use Jackson to deserialise an array of objects

    Read all the top votes questions and answers in a single page. #21: How to compare arrays in JavaScript? (Score: 1154) Created: 2011-10-20 Last updated: 2015-10-04 Tags: javascript, arrays, json I’d like to compare two arrays… ideally, …

    Read more