• 0
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 195

Backtrace:

File: /home/u125378470/domains/lawhelpguru.org/public_html/application/views/question.php
Line: 195
Function: _error_handler

File: /home/u125378470/domains/lawhelpguru.org/public_html/application/controllers/Questions.php
Line: 416
Function: view

File: /home/u125378470/domains/lawhelpguru.org/public_html/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

using grep commands to find a duplicate id within a json file

I am looking for a way to use grep on a linux server to find duplicate json records, is it possible to have a grep to search for duplicate id's in the example below ?

so the grep would return: 01

{
 "book": [

  {
     "id": "01",
     "language": "Java",
     "edition": "third",
     "author": "Herbert Schildt"
  },
  {
     "id": "02",
     "language": "Java",
     "edition": "third",
     "author": "Herbert Schildt"
  },
  {
     "id": "03",
     "language": "Java",
     "edition": "third",
     "author": "Herbert Schildt"
  },
  {
     "id": "01",
     "language": "Java",
     "edition": "third",
     "author": "Herbert Schildt"
  },

  {
     "id": "04",
     "language": "C++",
     "edition": "second",
     "author": "E.Balagurusamy"
  }

 ]
}