2

I have this error in validate test of jsonlint.com:

Results

Parse error on line 1:
s: 39551: "a:35:{s:4
^
Expecting '{', '['

Can someboady help me to fix it?

Thank a lot in advance!

12
  • 1
    can you post full JSON ? Commented Oct 4, 2014 at 10:19
  • Just a wild guess, but perhaps the problem is that your JSON code is not valid. Commented Oct 4, 2014 at 11:50
  • @andruboy I can't post full code, it's too long for stackoverflow post. :/ Commented Oct 4, 2014 at 13:24
  • 1
    @SteYeu use pastie.org for pasting code Commented Oct 4, 2014 at 13:25
  • 1
    is this your JSON code? please make sure about JSON check your JSON in this parser so you can get where is you missing json.parser.online.fr Commented Oct 4, 2014 at 13:46

2 Answers 2

2

put those brackets on line one.

Sign up to request clarification or add additional context in comments.

1 Comment

...but I don't know where. :/
1

You should provide code example. But it seems what is not JSON, but serialized PHP. In that case You should use:

unserialize("a:35:{s:4  ...");

Instead of:

json_decode("a:35:{s:4  ...");

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.