Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

MapboxGeocoding - Not a JSON Array - Error processing response

Open
#1,073 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
api

Research direction

Start by reproducing the MapboxGeocoding query with the reported dependency versions and inspect how the response containing a GeoJSON Point is parsed. Confirm the expected response shape and identify why this response is treated as an array; done means the query completes without the reported parsing exception.

Written by the indexing model from the issue text.

Description

I've tried to get some results from MapboxGeocoding query but I'm getting this response:
java.lang.IllegalStateException: Not a JSON Array: {"type":"Point","coordinates":[-95.36812,29.761636]}

Gradle:

mapboxAnnotationPluginVersion = '0.5.0'
mapboxServicesVersion = '4.7.0' .  (Also tried with 4.6.0 and 4.8.0)
mapboxVersion = '8.2.0'
Screen Shot 2019-09-13 at 09 59 18 Screen Shot 2019-09-13 at 10 00 06
Expected Behavior
Current Behavior

Getting : java.lang.IllegalStateException: Not a JSON Array: {"type":"Point","coordinates":[-95.36812,29.761636]}

Possible Solution
Steps to Reproduce
  1. Hardcoded a string (valid address) on query parameter
  2. Execute de code above in the screenshots
  3. Get the response error parsing
Context (Environment)
Detailed Description
Possible Implementation
Dominant language
Java
Stars
438
Forks
117
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mapbox/mapbox-java

All issues in mapbox/mapbox-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.